]> git.lizzy.rs Git - rust.git/blob - tests/ui/blacklisted_name.stderr
Fix span in `blacklisted_name`
[rust.git] / tests / ui / blacklisted_name.stderr
1 error: use of a blacklisted/placeholder name `foo`
2  --> $DIR/blacklisted_name.rs:7:9
3   |
4 7 | fn test(foo: ()) {}
5   |         ^^^
6   |
7 note: lint level defined here
8  --> $DIR/blacklisted_name.rs:5:9
9   |
10 5 | #![deny(blacklisted_name)]
11   |         ^^^^^^^^^^^^^^^^
12
13 error: use of a blacklisted/placeholder name `foo`
14   --> $DIR/blacklisted_name.rs:10:9
15    |
16 10 |     let foo = 42;
17    |         ^^^
18
19 error: use of a blacklisted/placeholder name `bar`
20   --> $DIR/blacklisted_name.rs:11:9
21    |
22 11 |     let bar = 42;
23    |         ^^^
24
25 error: use of a blacklisted/placeholder name `baz`
26   --> $DIR/blacklisted_name.rs:12:9
27    |
28 12 |     let baz = 42;
29    |         ^^^
30
31 error: use of a blacklisted/placeholder name `foo`
32   --> $DIR/blacklisted_name.rs:18:10
33    |
34 18 |         (foo, Some(bar), baz @ Some(_)) => (),
35    |          ^^^
36
37 error: use of a blacklisted/placeholder name `bar`
38   --> $DIR/blacklisted_name.rs:18:20
39    |
40 18 |         (foo, Some(bar), baz @ Some(_)) => (),
41    |                    ^^^
42
43 error: use of a blacklisted/placeholder name `baz`
44   --> $DIR/blacklisted_name.rs:18:26
45    |
46 18 |         (foo, Some(bar), baz @ Some(_)) => (),
47    |                          ^^^
48
49 error: use of a blacklisted/placeholder name `foo`
50   --> $DIR/blacklisted_name.rs:23:19
51    |
52 23 | fn issue_1647(mut foo: u8) {
53    |                   ^^^
54
55 error: use of a blacklisted/placeholder name `bar`
56   --> $DIR/blacklisted_name.rs:24:13
57    |
58 24 |     let mut bar = 0;
59    |             ^^^
60
61 error: use of a blacklisted/placeholder name `baz`
62   --> $DIR/blacklisted_name.rs:25:21
63    |
64 25 |     if let Some(mut baz) = Some(42) {}
65    |                     ^^^
66
67 error: use of a blacklisted/placeholder name `bar`
68   --> $DIR/blacklisted_name.rs:29:13
69    |
70 29 |     let ref bar = 0;
71    |             ^^^
72
73 error: use of a blacklisted/placeholder name `baz`
74   --> $DIR/blacklisted_name.rs:30:21
75    |
76 30 |     if let Some(ref baz) = Some(42) {}
77    |                     ^^^
78
79 error: use of a blacklisted/placeholder name `bar`
80   --> $DIR/blacklisted_name.rs:34:17
81    |
82 34 |     let ref mut bar = 0;
83    |                 ^^^
84
85 error: use of a blacklisted/placeholder name `baz`
86   --> $DIR/blacklisted_name.rs:35:25
87    |
88 35 |     if let Some(ref mut baz) = Some(42) {}
89    |                         ^^^
90
91 error: aborting due to 14 previous errors
92