|
| 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 | +15 | #[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 | +22 | #[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 | +29 | #[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 | +36 | #[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 | +43 | #[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 | + |
0 commit comments