]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-should-panic-attr.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / test-attrs / test-should-panic-attr.stderr
1 warning: argument must be of the form: `expected = "error message"`
2   --> $DIR/test-should-panic-attr.rs:11:1
3    |
4 LL | #[should_panic(expected)]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
8
9 warning: argument must be of the form: `expected = "error message"`
10   --> $DIR/test-should-panic-attr.rs:18:1
11    |
12 LL | #[should_panic(expect)]
13    | ^^^^^^^^^^^^^^^^^^^^^^^
14    |
15    = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
16
17 warning: argument must be of the form: `expected = "error message"`
18   --> $DIR/test-should-panic-attr.rs:25:1
19    |
20 LL | #[should_panic(expected(foo, bar))]
21    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22    |
23    = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
24
25 warning: argument must be of the form: `expected = "error message"`
26   --> $DIR/test-should-panic-attr.rs:32:1
27    |
28 LL | #[should_panic(expected = "foo", bar)]
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30    |
31    = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
32
33 warning: 4 warnings emitted
34