]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/bad-annotation.stderr
Fix conversion from Miri Value to ConstValue
[rust.git] / src / test / ui / on-unimplemented / bad-annotation.stderr
1 error[E0232]: `#[rustc_on_unimplemented]` requires a value
2   --> $DIR/bad-annotation.rs:26:1
3    |
4 LL | #[rustc_on_unimplemented] //~ ERROR `#[rustc_on_unimplemented]` requires a value
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^ value required here
6    |
7    = note: eg `#[rustc_on_unimplemented = "foo"]`
8
9 error[E0230]: there is no type parameter C on trait BadAnnotation2
10   --> $DIR/bad-annotation.rs:30:1
11    |
12 LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
13    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error[E0231]: only named substitution parameters are allowed
16   --> $DIR/bad-annotation.rs:35:1
17    |
18 LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{}>`"]
19    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error[E0232]: this attribute must have a valid value
22   --> $DIR/bad-annotation.rs:40:26
23    |
24 LL | #[rustc_on_unimplemented(lorem="")]
25    |                          ^^^^^^^^ expected value here
26    |
27    = note: eg `#[rustc_on_unimplemented = "foo"]`
28
29 error[E0232]: this attribute must have a valid value
30   --> $DIR/bad-annotation.rs:44:26
31    |
32 LL | #[rustc_on_unimplemented(lorem(ipsum(dolor)))]
33    |                          ^^^^^^^^^^^^^^^^^^^ expected value here
34    |
35    = note: eg `#[rustc_on_unimplemented = "foo"]`
36
37 error[E0232]: this attribute must have a valid value
38   --> $DIR/bad-annotation.rs:48:39
39    |
40 LL | #[rustc_on_unimplemented(message="x", message="y")]
41    |                                       ^^^^^^^^^^^ expected value here
42    |
43    = note: eg `#[rustc_on_unimplemented = "foo"]`
44
45 error[E0232]: this attribute must have a valid value
46   --> $DIR/bad-annotation.rs:52:39
47    |
48 LL | #[rustc_on_unimplemented(message="x", on(desugared, message="y"))]
49    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
50    |
51    = note: eg `#[rustc_on_unimplemented = "foo"]`
52
53 error[E0232]: empty `on`-clause in `#[rustc_on_unimplemented]`
54   --> $DIR/bad-annotation.rs:56:26
55    |
56 LL | #[rustc_on_unimplemented(on(), message="y")]
57    |                          ^^^^ empty on-clause here
58
59 error[E0232]: this attribute must have a valid value
60   --> $DIR/bad-annotation.rs:60:26
61    |
62 LL | #[rustc_on_unimplemented(on="x", message="y")]
63    |                          ^^^^^^ expected value here
64    |
65    = note: eg `#[rustc_on_unimplemented = "foo"]`
66
67 error[E0232]: this attribute must have a valid value
68   --> $DIR/bad-annotation.rs:67:40
69    |
70 LL | #[rustc_on_unimplemented(on(desugared, on(desugared, message="x")), message="y")]
71    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here
72    |
73    = note: eg `#[rustc_on_unimplemented = "foo"]`
74
75 error: aborting due to 10 previous errors
76
77 Some errors occurred: E0230, E0231, E0232.
78 For more information about an error, try `rustc --explain E0230`.