fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB89 linesraw
1error: use of a disallowed/placeholder name `foo`
2  --> $DIR/disallowed_names.rs:12:9
3   |
4LL | fn test(foo: ()) {}
5   |         ^^^
6   |
7   = note: `-D clippy::disallowed-names` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::disallowed_names)]`
9
10error: use of a disallowed/placeholder name `foo`
11  --> $DIR/disallowed_names.rs:17:9
12   |
13LL |     let foo = 42;
14   |         ^^^
15
16error: use of a disallowed/placeholder name `baz`
17  --> $DIR/disallowed_names.rs:19:9
18   |
19LL |     let baz = 42;
20   |         ^^^
21
22error: use of a disallowed/placeholder name `quux`
23  --> $DIR/disallowed_names.rs:21:9
24   |
25LL |     let quux = 42;
26   |         ^^^^
27
28error: use of a disallowed/placeholder name `foo`
29  --> $DIR/disallowed_names.rs:33:10
30   |
31LL |         (foo, Some(baz), quux @ Some(_)) => (),
32   |          ^^^
33
34error: use of a disallowed/placeholder name `baz`
35  --> $DIR/disallowed_names.rs:33:20
36   |
37LL |         (foo, Some(baz), quux @ Some(_)) => (),
38   |                    ^^^
39
40error: use of a disallowed/placeholder name `quux`
41  --> $DIR/disallowed_names.rs:33:26
42   |
43LL |         (foo, Some(baz), quux @ Some(_)) => (),
44   |                          ^^^^
45
46error: use of a disallowed/placeholder name `foo`
47  --> $DIR/disallowed_names.rs:41:19
48   |
49LL | fn issue_1647(mut foo: u8) {
50   |                   ^^^
51
52error: use of a disallowed/placeholder name `baz`
53  --> $DIR/disallowed_names.rs:43:13
54   |
55LL |     let mut baz = 0;
56   |             ^^^
57
58error: use of a disallowed/placeholder name `quux`
59  --> $DIR/disallowed_names.rs:45:21
60   |
61LL |     if let Some(mut quux) = Some(42) {}
62   |                     ^^^^
63
64error: use of a disallowed/placeholder name `baz`
65  --> $DIR/disallowed_names.rs:50:13
66   |
67LL |     let ref baz = 0;
68   |             ^^^
69
70error: use of a disallowed/placeholder name `quux`
71  --> $DIR/disallowed_names.rs:52:21
72   |
73LL |     if let Some(ref quux) = Some(42) {}
74   |                     ^^^^
75
76error: use of a disallowed/placeholder name `baz`
77  --> $DIR/disallowed_names.rs:57:17
78   |
79LL |     let ref mut baz = 0;
80   |                 ^^^
81
82error: use of a disallowed/placeholder name `quux`
83  --> $DIR/disallowed_names.rs:59:25
84   |
85LL |     if let Some(ref mut quux) = Some(42) {}
86   |                         ^^^^
87
88error: aborting due to 14 previous errors
89