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

59 lines
1.7 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
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", note = "a", 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
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", 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:10:18
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since, note = "a")]
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:13:31
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", note(b))]
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:16:18
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since(b), note = "a")]
2018-06-30 12:02:58 -05:00
| ^^^^^^^^
error[E0565]: literal in `deprecated` value must be a string
--> $DIR/deprecation-sanity.rs:19:25
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(note = b"test")]
| ^^^^^^^ help: consider removing the prefix: `"test"`
error[E0565]: item in `deprecated` must be a key/value pair
--> $DIR/deprecation-sanity.rs:22:18
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated("test")]
| ^^^^^^
2018-06-30 12:02:58 -05:00
error[E0550]: multiple deprecated attributes
--> $DIR/deprecation-sanity.rs:28:1
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn multiple1() { }
2018-06-30 12:02:58 -05:00
| ^^^^^^^^^^^^^^^^^^
error[E0538]: multiple 'since' items
--> $DIR/deprecation-sanity.rs:30:27
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", since = "b", note = "c")]
2018-06-30 12:02:58 -05:00
| ^^^^^^^^^^^
error: aborting due to 9 previous errors
2018-06-30 12:02:58 -05:00
Some errors have detailed explanations: E0538, E0541, E0565.
2018-06-30 12:02:58 -05:00
For more information about an error, try `rustc --explain E0538`.