Rocket/core/codegen/tests/ui-fail-stable/responder.stderr

232 lines
7.0 KiB
Plaintext

error: need at least one field
--> $DIR/responder.rs:4:1
|
4 | struct Thing1;
| ^^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:3:10
|
3 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: need at least one field
--> $DIR/responder.rs:7:14
|
7 | struct Thing2();
| ^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:6:10
|
6 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: need at least one field
--> $DIR/responder.rs:13:12
|
13 | enum Foo { Bark, }
| ^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:12:10
|
12 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: only one lifetime is supported
--> $DIR/responder.rs:16:14
|
16 | struct Thing4<'a, 'b>(&'a str, &'b str);
| ^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:15:10
|
15 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid or unknown content type
--> $DIR/responder.rs:25:27
|
25 | #[response(content_type = "")]
| ^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:24:10
|
24 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid or unknown content type
--> $DIR/responder.rs:29:27
|
29 | #[response(content_type = "idk")]
| ^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:28:10
|
28 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected string literal
--> $DIR/responder.rs:33:27
|
33 | #[response(content_type = 100)]
| ^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:32:10
|
32 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: status must be in range [100, 599]
--> $DIR/responder.rs:37:21
|
37 | #[response(status = 8)]
| ^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:36:10
|
36 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected unsigned integer literal
--> $DIR/responder.rs:41:21
|
41 | #[response(status = "404")]
| ^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:40:10
|
40 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected unsigned integer literal
--> $DIR/responder.rs:45:21
|
45 | #[response(status = "404", content_type = "html")]
| ^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:44:10
|
44 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected string literal
--> $DIR/responder.rs:49:41
|
49 | #[response(status = 404, content_type = 120)]
| ^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:48:10
|
48 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected string literal
--> $DIR/responder.rs:53:20
|
53 | #[response(bound = 10)]
| ^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:52:10
|
52 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid bound syntax: expected `:`
--> $DIR/responder.rs:65:20
|
65 | #[response(bound = "ponies are cool")]
| ^^^^^^^^^^^^^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:64:10
|
64 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid bound syntax: expected `,`
--> $DIR/responder.rs:69:20
|
69 | #[response(bound = "T: ROCKETS + ARE COOLER")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: [note] error occurred while deriving `Responder`
--> $DIR/responder.rs:68:10
|
68 | #[derive(Responder)]
| ^^^^^^^^^
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Header<'_>: From<E>` is not satisfied
--> $DIR/responder.rs:22:24
|
22 | struct Thing6<T, E>(T, E); // NO ERROR
| ^ the trait `From<E>` is not implemented for `Header<'_>`
|
= note: required because of the requirements on the impl of `Into<Header<'_>>` for `E`
help: consider extending the `where` bound, but there might be an alternative better way to express this requirement
|
21 | #[derive(Responder, Header<'_>: From<E>)]
| ^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `T: Responder<'_, '_>` is not satisfied
--> $DIR/responder.rs:58:19
|
58 | struct Thing15<T>(T);
| ^ the trait `Responder<'_, '_>` is not implemented for `T`
|
= note: required by `respond_to`
help: consider further restricting this bound
|
57 | #[response(bound = "T: std::fmt::Display" + rocket::response::Responder<'_, '_>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `T: Responder<'_, '_>` is not satisfied
--> $DIR/responder.rs:62:19
|
62 | struct Thing16<T>(T);
| ^ the trait `Responder<'_, '_>` is not implemented for `T`
|
= note: required by `respond_to`
help: consider further restricting this bound
|
61 | #[response(bound = "T: std::fmt::Display" + rocket::response::Responder<'_, '_>)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^