fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB34 linesraw
1warning: argument must be of the form: `expected = "error message"`
2  --> $DIR/test-should-panic-attr.rs:11:1
3   |
4LL | #[should_panic(expected)]
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
8
9warning: argument must be of the form: `expected = "error message"`
10  --> $DIR/test-should-panic-attr.rs:18:1
11   |
12LL | #[should_panic(expect)]
13   | ^^^^^^^^^^^^^^^^^^^^^^^
14   |
15   = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
16
17warning: argument must be of the form: `expected = "error message"`
18  --> $DIR/test-should-panic-attr.rs:25:1
19   |
20LL | #[should_panic(expected(foo, bar))]
21   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22   |
23   = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
24
25warning: argument must be of the form: `expected = "error message"`
26  --> $DIR/test-should-panic-attr.rs:32:1
27   |
28LL | #[should_panic(expected = "foo", bar)]
29   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30   |
31   = note: errors in this attribute were erroneously allowed and will become a hard error in a future release
32
33warning: 4 warnings emitted
34