1 error[E0232]: `#[rustc_on_unimplemented]` requires a value
2 --> $DIR/bad-annotation.rs:26:1
4 LL | #[rustc_on_unimplemented] //~ ERROR `#[rustc_on_unimplemented]` requires a value
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ value required here
7 = note: eg `#[rustc_on_unimplemented(message="foo")]`
9 error[E0230]: there is no parameter `C` on trait `BadAnnotation2`
10 --> $DIR/bad-annotation.rs:30:1
12 LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error[E0231]: only named substitution parameters are allowed
16 --> $DIR/bad-annotation.rs:35:1
18 LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{}>`"]
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error[E0232]: this attribute must have a valid value
22 --> $DIR/bad-annotation.rs:40:26
24 LL | #[rustc_on_unimplemented(lorem="")]
25 | ^^^^^^^^ expected value here
27 = note: eg `#[rustc_on_unimplemented(message="foo")]`
29 error[E0232]: this attribute must have a valid value
30 --> $DIR/bad-annotation.rs:44:26
32 LL | #[rustc_on_unimplemented(lorem(ipsum(dolor)))]
33 | ^^^^^^^^^^^^^^^^^^^ expected value here
35 = note: eg `#[rustc_on_unimplemented(message="foo")]`
37 error[E0232]: this attribute must have a valid value
38 --> $DIR/bad-annotation.rs:48:39
40 LL | #[rustc_on_unimplemented(message="x", message="y")]
41 | ^^^^^^^^^^^ expected value here
43 = note: eg `#[rustc_on_unimplemented(message="foo")]`
45 error[E0232]: this attribute must have a valid value
46 --> $DIR/bad-annotation.rs:52:39
48 LL | #[rustc_on_unimplemented(message="x", on(desugared, message="y"))]
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
51 = note: eg `#[rustc_on_unimplemented(message="foo")]`
53 error[E0232]: empty `on`-clause in `#[rustc_on_unimplemented]`
54 --> $DIR/bad-annotation.rs:56:26
56 LL | #[rustc_on_unimplemented(on(), message="y")]
57 | ^^^^ empty on-clause here
59 error[E0232]: this attribute must have a valid value
60 --> $DIR/bad-annotation.rs:60:26
62 LL | #[rustc_on_unimplemented(on="x", message="y")]
63 | ^^^^^^ expected value here
65 = note: eg `#[rustc_on_unimplemented(message="foo")]`
67 error[E0232]: this attribute must have a valid value
68 --> $DIR/bad-annotation.rs:67:40
70 LL | #[rustc_on_unimplemented(on(desugared, on(desugared, message="x")), message="y")]
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
73 = note: eg `#[rustc_on_unimplemented(message="foo")]`
75 error: aborting due to 10 previous errors
77 Some errors occurred: E0230, E0231, E0232.
78 For more information about an error, try `rustc --explain E0230`.