@@ -11,28 +11,27 @@ warning: unused import: `rustify::endpoint::Endpoint`
11111 | use rustify::endpoint::Endpoint;
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313 |
14- = note: `#[warn(unused_imports)]` on by default
14+ = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
1515
1616error[E0308]: mismatched types
1717 --> tests/macro/invalid_data.rs:5:17
1818 |
19- 5 | #[derive(Debug, Endpoint, Serialize)]
20- | ^^^^^^^^
21- | |
22- | expected `Vec<u8>`, found `String`
23- | arguments to this enum variant are incorrect
24- |
25- = note: expected struct `Vec<u8>`
26- found struct `std::string:: String`
27- help: the type constructed contains `std::string:: String` due to the type of the argument passed
28- --> tests/macro/invalid_data.rs:5:17
29- |
30- 5 | #[derive(Debug, Endpoint, Serialize)]
31- | ^^^^^^^^ this argument influences the type of `Some`
19+ 5 | #[derive(Debug, Endpoint, Serialize)]
20+ | ^^^^^^^^
21+ | |
22+ | expected `Vec<u8>`, found `String`
23+ | arguments to this enum variant are incorrect
24+ |
25+ = note: expected struct `Vec<u8>`
26+ found struct `String`
27+ help: the type constructed contains `String` due to the type of the argument passed
28+ --> tests/macro/invalid_data.rs:5:17
29+ |
30+ 5 | #[derive(Debug, Endpoint, Serialize)]
31+ | ^^^^^^^^ this argument influences the type of `Some`
3232note: tuple variant defined here
33- --> $RUST/core/src/option.rs
34- = note: this error originates in the derive macro `Endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)
35- help: call `Into::into` on this expression to convert `std::string::String` into `Vec<u8>`
36- |
37- 5 | #[derive(Debug, Endpoint.into(), Serialize)]
38- | +++++++
33+ --> $RUST/core/src/option.rs
34+ |
35+ | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
36+ | ^^^^
37+ = note: this error originates in the derive macro `Endpoint` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments