2017-05-13 17:54:50 +08:00
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-02 02:21:05 +03:00
|
|
|
--> $DIR/test-should-panic-attr.rs:11:1
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[should_panic(expected)]
|
2017-05-13 17:54:50 +08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-03 15:53:02 +09:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-02 02:21:05 +03:00
|
|
|
--> $DIR/test-should-panic-attr.rs:18:1
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[should_panic(expect)]
|
2017-05-13 17:54:50 +08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-03 15:53:02 +09:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-02 02:21:05 +03:00
|
|
|
--> $DIR/test-should-panic-attr.rs:25:1
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[should_panic(expected(foo, bar))]
|
2017-05-13 17:54:50 +08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-03 15:53:02 +09:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
|
|
warning: argument must be of the form: `expected = "error message"`
|
2019-01-02 02:21:05 +03:00
|
|
|
--> $DIR/test-should-panic-attr.rs:32:1
|
2017-05-13 17:54:50 +08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #[should_panic(expected = "foo", bar)]
|
2017-05-13 17:54:50 +08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-03 15:53:02 +09:00
|
|
|
= note: errors in this attribute were erroneously allowed and will become a hard error in a future release
|
2017-05-13 17:54:50 +08:00
|
|
|
|
2020-03-11 16:30:09 +01:00
|
|
|
warning: 4 warnings emitted
|
|
|
|
|