about summary refs log tree commit diff
path: root/tests/ui/test-attrs/test-should-panic-attr.stderr
blob: 475a55ad0cbc26c60ac80dac8a55c66da326d7da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
error[E0539]: malformed `should_panic` attribute input
  --> $DIR/test-should-panic-attr.rs:10:1
   |
LL | #[should_panic(expected)]
   | ^^^^^^^^^^^^^^^--------^^
   |                |
   |                expected this to be of the form `expected = "..."`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/testing.html#the-should_panic-attribute>
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[should_panic(expected)]
LL + #[should_panic = "reason"]
   |
LL | #[should_panic(expected = "reason")]
   |                         ++++++++++
LL - #[should_panic(expected)]
LL + #[should_panic]
   |

error[E0539]: malformed `should_panic` attribute input
  --> $DIR/test-should-panic-attr.rs:19:1
   |
LL | #[should_panic(expect)]
   | ^^^^^^^^^^^^^^--------^
   |               |
   |               the only valid argument here is "expected"
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/testing.html#the-should_panic-attribute>
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[should_panic(expect)]
LL + #[should_panic = "reason"]
   |
LL | #[should_panic(expected = "reason")]
   |                      +++++++++++++
LL - #[should_panic(expect)]
LL + #[should_panic]
   |

error[E0539]: malformed `should_panic` attribute input
  --> $DIR/test-should-panic-attr.rs:28:1
   |
LL | #[should_panic(expected(foo, bar))]
   | ^^^^^^^^^^^^^^^------------------^^
   |                |
   |                expected this to be of the form `expected = "..."`
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/testing.html#the-should_panic-attribute>
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[should_panic(expected(foo, bar))]
LL + #[should_panic = "reason"]
   |
LL - #[should_panic(expected(foo, bar))]
LL + #[should_panic(expected = "reason")]
   |
LL - #[should_panic(expected(foo, bar))]
LL + #[should_panic]
   |

error[E0805]: malformed `should_panic` attribute input
  --> $DIR/test-should-panic-attr.rs:37:1
   |
LL | #[should_panic(expected = "foo", bar)]
   | ^^^^^^^^^^^^^^-----------------------^
   |               |
   |               expected a single argument here
   |
   = note: for more information, visit <https://doc.rust-lang.org/reference/attributes/testing.html#the-should_panic-attribute>
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[should_panic(expected = "foo", bar)]
LL + #[should_panic = "reason"]
   |
LL - #[should_panic(expected = "foo", bar)]
LL + #[should_panic(expected = "reason")]
   |
LL - #[should_panic(expected = "foo", bar)]
LL + #[should_panic]
   |

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0539, E0805.
For more information about an error, try `rustc --explain E0539`.