]> git.lizzy.rs Git - rust.git/blob - tests/ui/used_underscore_binding.stderr
Merge pull request #3269 from rust-lang-nursery/relicense
[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:27:5
3    |
4 27 |     _foo + 1
5    |     ^^^^
6    |
7    = note: `-D clippy::used-underscore-binding` implied by `-D warnings`
8
9 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
10   --> $DIR/used_underscore_binding.rs:32:20
11    |
12 32 |     println!("{}", _foo);
13    |                    ^^^^
14
15 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
16   --> $DIR/used_underscore_binding.rs:33:16
17    |
18 33 |     assert_eq!(_foo, _foo);
19    |                ^^^^
20
21 error: used binding `_foo` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
22   --> $DIR/used_underscore_binding.rs:33:22
23    |
24 33 |     assert_eq!(_foo, _foo);
25    |                      ^^^^
26
27 error: used binding `_underscore_field` which is prefixed with an underscore. A leading underscore signals that a binding will not be used.
28   --> $DIR/used_underscore_binding.rs:46:5
29    |
30 46 |     s._underscore_field += 1;
31    |     ^^^^^^^^^^^^^^^^^^^
32
33 error: aborting due to 5 previous errors
34