2019-05-22 00:47:23 +00:00
|
|
|
error: malformed `rustc_on_unimplemented` attribute input
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/bad-annotation.rs:17:1
|
2017-07-01 00:06:51 +00:00
|
|
|
|
|
2019-01-01 23:21:05 +00:00
|
|
|
LL | #[rustc_on_unimplemented]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-05-22 00:47:23 +00:00
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
|
|
|
|
LL | #[rustc_on_unimplemented = "message"]
|
|
|
|
|
|
2021-10-01 18:09:31 +00:00
|
|
|
LL | #[rustc_on_unimplemented(/*opt*/ message = "...", /*opt*/ label = "...", /*opt*/ note = "...")]
|
|
|
|
|
|
2017-07-01 00:06:51 +00:00
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
error[E0230]: there is no parameter `C` on trait `BadAnnotation2`
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:22:1
|
2017-07-01 00:06:51 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
|
2017-07-01 00:06:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0231]: only named substitution parameters are allowed
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:27:1
|
2017-07-01 00:06:51 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{}>`"]
|
2017-07-01 00:06:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2017-08-30 20:40:43 +00:00
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:32:26
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(lorem="")]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:36:26
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(lorem(ipsum(dolor)))]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:40:39
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(message="x", message="y")]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:44:39
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(message="x", on(desugared, message="y"))]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error[E0232]: empty `on`-clause in `#[rustc_on_unimplemented]`
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:48:26
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(on(), message="y")]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^ empty on-clause here
|
|
|
|
|
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:52:26
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(on="x", message="y")]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error[E0232]: this attribute must have a valid value
|
2019-01-01 23:21:05 +00:00
|
|
|
--> $DIR/bad-annotation.rs:59:40
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | #[rustc_on_unimplemented(on(desugared, on(desugared, message="x")), message="y")]
|
2017-08-30 20:40:43 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
|
|
|
|
|
|
2018-08-12 19:26:38 +00:00
|
|
|
= note: eg `#[rustc_on_unimplemented(message="foo")]`
|
2017-08-30 20:40:43 +00:00
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2017-07-01 00:06:51 +00:00
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0230, E0231, E0232.
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about an error, try `rustc --explain E0230`.
|