1 warning: argument must be of the form: `expected = "error message"`
2 --> $DIR/test-should-panic-attr.rs:11:1
4 LL | #[should_panic(expected)]
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:18:1
12 LL | #[should_panic(expect)]
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:25:1
20 LL | #[should_panic(expected(foo, bar))]
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:32: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: 4 warnings emitted