about summary refs log tree commit diff
path: root/tests/ui/lint/unused_parens_follow_ident.stderr
blob: ce7bb26778c0dc0dd2e64ad91dc5470f50bc669a (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
error: unnecessary parentheses around function argument
  --> $DIR/unused_parens_follow_ident.rs:12:16
   |
LL |     wrap!(unary(routine()));
   |                ^         ^
   |
note: the lint level is defined here
  --> $DIR/unused_parens_follow_ident.rs:3:9
   |
LL | #![deny(unused_parens)]
   |         ^^^^^^^^^^^^^
help: remove these parentheses
   |
LL -     wrap!(unary(routine()));
LL +     wrap!(unary routine());
   |

error: unnecessary parentheses around function argument
  --> $DIR/unused_parens_follow_ident.rs:13:17
   |
LL |     wrap!(unary (routine()));
   |                 ^         ^
   |
help: remove these parentheses
   |
LL -     wrap!(unary (routine()));
LL +     wrap!(unary routine());
   |

error: aborting due to 2 previous errors