rust/src/test/ui/test-attrs/test-should-panic-attr.stderr

35 lines
1.2 KiB
Plaintext
Raw Normal View History

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