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

41 lines
1.5 KiB
Plaintext
Raw Normal View History

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
|
2018-02-22 18:42:32 -06:00
LL | #[should_panic = "foo"]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
2018-02-22 18:42:32 -06:00
LL | #[should_panic(expected)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
2018-02-22 18:42:32 -06:00
LL | #[should_panic(expect)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
2018-02-22 18:42:32 -06:00
LL | #[should_panic(expected(foo, bar))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
2018-02-22 18:42:32 -06:00
LL | #[should_panic(expected = "foo", bar)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: Errors in this attribute were erroneously allowed and will become a hard error in a future release.