]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-should-panic-attr.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / test-should-panic-attr.stderr
1 warning: attribute must be of the form: `#[should_panic]` or `#[should_panic(expected = "error message")]`
2   --> $DIR/test-should-panic-attr.rs:15:1
3    |
4 LL | #[should_panic = "foo"]
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:22:1
11    |
12 LL | #[should_panic(expected)]
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:29:1
19    |
20 LL | #[should_panic(expect)]
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:36: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: argument must be of the form: `expected = "error message"`
34   --> $DIR/test-should-panic-attr.rs:43:1
35    |
36 LL | #[should_panic(expected = "foo", bar)]
37    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
40