fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.7 KiB58 linesraw
1error[E0541]: unknown meta item 'reason'
2  --> $DIR/deprecation-sanity.rs:4:43
3   |
4LL |     #[deprecated(since = "a", note = "a", reason)]
5   |                                           ^^^^^^ expected one of `since`, `note`
6
7error[E0551]: incorrect meta item
8  --> $DIR/deprecation-sanity.rs:7:31
9   |
10LL |     #[deprecated(since = "a", note)]
11   |                               ^^^^
12
13error[E0551]: incorrect meta item
14  --> $DIR/deprecation-sanity.rs:10:18
15   |
16LL |     #[deprecated(since, note = "a")]
17   |                  ^^^^^
18
19error[E0551]: incorrect meta item
20  --> $DIR/deprecation-sanity.rs:13:31
21   |
22LL |     #[deprecated(since = "a", note(b))]
23   |                               ^^^^^^^
24
25error[E0551]: incorrect meta item
26  --> $DIR/deprecation-sanity.rs:16:18
27   |
28LL |     #[deprecated(since(b), note = "a")]
29   |                  ^^^^^^^^
30
31error[E0565]: literal in `deprecated` value must be a string
32  --> $DIR/deprecation-sanity.rs:19:25
33   |
34LL |     #[deprecated(note = b"test")]
35   |                         ^^^^^^^ help: consider removing the prefix: `"test"`
36
37error[E0565]: item in `deprecated` must be a key/value pair
38  --> $DIR/deprecation-sanity.rs:22:18
39   |
40LL |     #[deprecated("test")]
41   |                  ^^^^^^
42
43error[E0550]: multiple deprecated attributes
44  --> $DIR/deprecation-sanity.rs:28:1
45   |
46LL | fn multiple1() { }
47   | ^^^^^^^^^^^^^^^^^^
48
49error[E0538]: multiple 'since' items
50  --> $DIR/deprecation-sanity.rs:30:27
51   |
52LL | #[deprecated(since = "a", since = "b", note = "c")]
53   |                           ^^^^^^^^^^^
54
55error: aborting due to 9 previous errors
56
57Some errors have detailed explanations: E0538, E0541, E0550, E0551, E0565.
58For more information about an error, try `rustc --explain E0538`.