about summary refs log tree commit diff
path: root/tests/ui/lint/unused-parens-for-macro-call-with-brace.stderr
blob: 8d3b4fe493e2215ef36b33e5f13bb22230d8d511 (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
error: unnecessary parentheses around assigned value
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:11:19
   |
LL |     let Some(_) = ((x!{})) else { return };
   |                   ^      ^
   |
note: the lint level is defined here
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:3:9
   |
LL | #![deny(unused_parens)]
   |         ^^^^^^^^^^^^^
help: remove these parentheses
   |
LL -     let Some(_) = ((x!{})) else { return };
LL +     let Some(_) = (x!{}) else { return };
   |

error: unnecessary parentheses around pattern
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:14:14
   |
LL |     let Some((_)) = (x!{}) else { return };
   |              ^ ^
   |
help: remove these parentheses
   |
LL -     let Some((_)) = (x!{}) else { return };
LL +     let Some(_) = (x!{}) else { return };
   |

error: unnecessary parentheses around assigned value
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:18:13
   |
LL |     let _ = (x!{});
   |             ^    ^
   |
help: remove these parentheses
   |
LL -     let _ = (x!{});
LL +     let _ = x!{};
   |

error: unnecessary parentheses around `let` scrutinee expression
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:22:22
   |
LL |     if let Some(_) = (x!{}) {};
   |                      ^    ^
   |
help: remove these parentheses
   |
LL -     if let Some(_) = (x!{}) {};
LL +     if let Some(_) = x!{} {};
   |

error: unnecessary parentheses around `let` scrutinee expression
  --> $DIR/unused-parens-for-macro-call-with-brace.rs:26:25
   |
LL |     while let Some(_) = (x!{}) {};
   |                         ^    ^
   |
help: remove these parentheses
   |
LL -     while let Some(_) = (x!{}) {};
LL +     while let Some(_) = x!{} {};
   |

error: aborting due to 5 previous errors