summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/unused_braces_borrow.stderr
blob: 05f7432b8ab36e7c9ce0889f27e691c9edcaaec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
warning: unnecessary braces around function argument
  --> $DIR/unused_braces_borrow.rs:24:13
   |
LL |     consume({ a.b });
   |             ^^   ^^
   |
note: the lint level is defined here
  --> $DIR/unused_braces_borrow.rs:4:9
   |
LL | #![warn(unused_braces)]
   |         ^^^^^^^^^^^^^
help: remove these braces
   |
LL -     consume({ a.b });
LL +     consume(a.b);
   |

warning: 1 warning emitted