Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions dropshot/tests/fail/bad_channel6.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,3 @@ error: expected identifier, found `0x1de`
| --- ^^^^^ expected identifier
| |
| while parsing this struct

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_channel6.rs:28:13
|
28 | let _ = Ret { "Oxide".to_string(), 0x1de };
| ^^^ missing `x` and `y`
6 changes: 0 additions & 6 deletions dropshot/tests/fail/bad_endpoint6.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,3 @@ error: expected identifier, found `0x1de`
| --- ^^^^^ expected identifier
| |
| while parsing this struct

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_endpoint6.rs:28:23
|
28 | Ok(HttpResponseOk(Ret { "Oxide".to_string(), 0x1de }))
| ^^^ missing `x` and `y`
34 changes: 34 additions & 0 deletions dropshot/tests/fail/bad_endpoint7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,40 @@ note: required by a bound in `HttpResponseOk`
| pub struct HttpResponseOk<T: HttpResponseContent + Send + Sync + 'static>(
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk`

error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied
--> tests/fail/bad_endpoint7.rs:25:8
|
25 | Ok(HttpResponseOk(Ret {
| ________^
26 | | x: "Oxide".to_string(),
27 | | y: 0x1de,
28 | | }))
| |______^ unsatisfied trait bound
|
help: the trait `serde_core::ser::Serialize` is not implemented for `Ret`
--> tests/fail/bad_endpoint7.rs:13:1
|
13 | struct Ret {
| ^^^^^^^^^^
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `serde_core::ser::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
note: required by a bound in `HttpResponseOk`
--> src/handler.rs
|
| pub struct HttpResponseOk<T: HttpResponseContent + Send + Sync + 'static>(
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk`

error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied
--> tests/fail/bad_endpoint7.rs:25:5
|
Expand Down
12 changes: 0 additions & 12 deletions dropshot/tests/fail/bad_trait_channel6.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,3 @@ error: expected identifier, found `0x1de`
| --- ^^^^^ expected identifier
| |
| while parsing this struct

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_trait_channel6.rs:48:17
|
48 | let _ = Ret { "Oxide".to_string(), 0x1de };
| ^^^ missing `x` and `y`

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_trait_channel6.rs:31:17
|
31 | let _ = Ret { "Oxide".to_string(), 0x1de };
| ^^^ missing `x` and `y`
12 changes: 0 additions & 12 deletions dropshot/tests/fail/bad_trait_endpoint6.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,3 @@ error: expected identifier, found `0x220`
| --- ^^^^^ expected identifier
| |
| while parsing this struct

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_trait_endpoint6.rs:46:27
|
46 | Ok(HttpResponseOk(Ret { "220".to_string(), 0x220 }))
| ^^^ missing `x` and `y`

error[E0063]: missing fields `x` and `y` in initializer of `Ret`
--> tests/fail/bad_trait_endpoint6.rs:31:27
|
31 | Ok(HttpResponseOk(Ret { "Oxide".to_string(), 0x1de }))
| ^^^ missing `x` and `y`
30 changes: 30 additions & 0 deletions dropshot/tests/fail/bad_trait_endpoint7.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,36 @@ note: required by a bound in `dropshot::HttpResponseOk`
| pub struct HttpResponseOk<T: HttpResponseContent + Send + Sync + 'static>(
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `dropshot::HttpResponseOk`

error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied
--> tests/fail/bad_trait_endpoint7.rs:41:12
|
41 | Ok(HttpResponseOk(Ret { x: "Oxide".to_string(), y: 0x1de }))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `serde_core::ser::Serialize` is not implemented for `Ret`
--> tests/fail/bad_trait_endpoint7.rs:13:1
|
13 | struct Ret {
| ^^^^^^^^^^
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `Ret` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `serde_core::ser::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and $N others
= note: required for `Ret` to implement `dropshot::handler::HttpResponseContent`
note: required by a bound in `dropshot::HttpResponseOk`
--> src/handler.rs
|
| pub struct HttpResponseOk<T: HttpResponseContent + Send + Sync + 'static>(
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `HttpResponseOk`

error[E0277]: the trait bound `Ret: serde::Serialize` is not satisfied
--> tests/fail/bad_trait_endpoint7.rs:41:9
|
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# The intent is to keep this updated as new stable versions are relased.

[toolchain]
channel = "1.95.0"
channel = "1.96.0"
profile = "default"
Loading