2017-05-13 04:54:50 -05:00
|
|
|
warning: attribute must be of the form: `#[should_panic]` or `#[should_panic(expected = "error message")]`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:5:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[should_panic = "foo"]
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:12:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[should_panic(expected)]
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:19:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[should_panic(expect)]
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:26:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[should_panic(expected(foo, bar))]
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:33:1
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #[should_panic(expected = "foo", bar)]
|
2017-05-13 04:54:50 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
|
|
|
|