2017-05-13 04:54:50 -05:00
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:11: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:18: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:25: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
2017-05-13 04:54:50 -05:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-01 17:21:05 -06:00
|
|
|
--> $DIR/test-should-panic-attr.rs:32: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-10 08:13:05 -06:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release.
|
2017-05-13 04:54:50 -05:00
|
|
|
|