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
4 LL | #[should_panic = "foo"]
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
9 warning: argument must be of the form: `expected = "error message"`
10 --> $DIR/test-should-panic-attr.rs:22:1
12 LL | #[should_panic(expected)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^
15 = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
17 warning: argument must be of the form: `expected = "error message"`
18 --> $DIR/test-should-panic-attr.rs:29:1
20 LL | #[should_panic(expect)]
21 | ^^^^^^^^^^^^^^^^^^^^^^^
23 = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
25 warning: argument must be of the form: `expected = "error message"`
26 --> $DIR/test-should-panic-attr.rs:36:1
28 LL | #[should_panic(expected(foo, bar))]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
33 warning: argument must be of the form: `expected = "error message"`
34 --> $DIR/test-should-panic-attr.rs:43:1
36 LL | #[should_panic(expected = "foo", bar)]
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 = note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.