rust/src/test/ui/deprecation/deprecation-sanity.stderr

47 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-06-30 12:02:58 -05:00
error[E0541]: unknown meta item 'reason'
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:4:43
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since = "a", note = "a", reason)] //~ ERROR unknown meta item 'reason'
2018-06-30 14:33:59 -05:00
| ^^^^^^ expected one of `since`, `note`
2018-06-30 12:02:58 -05:00
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:7:31
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since = "a", note)] //~ ERROR incorrect meta item
| ^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:10:18
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since, note = "a")] //~ ERROR incorrect meta item
| ^^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:13:31
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since = "a", note(b))] //~ ERROR incorrect meta item
| ^^^^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:16:18
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since(b), note = "a")] //~ ERROR incorrect meta item
| ^^^^^^^^
error[E0550]: multiple deprecated attributes
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:22:1
2018-06-30 12:02:58 -05:00
|
LL | fn multiple1() { } //~ ERROR multiple deprecated attributes
| ^^^^^^^^^^^^^^^^^^
error[E0538]: multiple 'since' items
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:24:27
2018-06-30 12:02:58 -05:00
|
LL | #[deprecated(since = "a", since = "b", note = "c")] //~ ERROR multiple 'since' items
| ^^^^^^^^^^^
error: aborting due to 7 previous errors
Some errors occurred: E0538, E0541, E0550, E0551.
For more information about an error, try `rustc --explain E0538`.