]> git.lizzy.rs Git - rust.git/blob - tests/ui/used_underscore_binding.stderr
Merge pull request #1747 from Manishearth/mut_fp
[rust.git] / tests / ui / used_underscore_binding.stderr
1 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
2   --> $DIR/used_underscore_binding.rs:17:5
3    |
4 17 |     _foo + 1
5    |     ^^^^
6    |
7 note: lint level defined here
8   --> $DIR/used_underscore_binding.rs:6:9
9    |
10 6  | #![deny(used_underscore_binding)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
14   --> $DIR/used_underscore_binding.rs:22:20
15    |
16 22 |     println!("{}", _foo);
17    |                    ^^^^
18
19 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
20   --> $DIR/used_underscore_binding.rs:23:16
21    |
22 23 |     assert_eq!(_foo, _foo);
23    |                ^^^^
24
25 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
26   --> $DIR/used_underscore_binding.rs:23:22
27    |
28 23 |     assert_eq!(_foo, _foo);
29    |                      ^^^^
30
31 error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
32   --> $DIR/used_underscore_binding.rs:36:5
33    |
34 36 |     s._underscore_field += 1;
35    |     ^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 5 previous errors
38