2023-07-02 07:35:19 -05:00
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:9:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | struct A {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::min-ident-chars` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::min_ident_chars)]`
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:10:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | a: u32,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:12:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | A: u32,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:13:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | I: u32,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:16:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | struct B(u32);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:18:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | struct O {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:19:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | o: u32,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:24:6
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | enum C {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:25:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | D,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:26:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | E,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:27:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | F,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:41:11
|
2024-02-14 15:22:15 -06:00
|
|
|
|
|
|
|
|
LL | const A: u32 = 0;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:42:10
|
2024-02-14 15:22:15 -06:00
|
|
|
|
|
|
|
|
LL | type A;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:43:8
|
2024-02-14 15:22:15 -06:00
|
|
|
|
|
|
|
|
LL | fn a() {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:57:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let h = 1;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:58:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let e = 2;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:59:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let l = 3;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:60:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let l = 4;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:61:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let o = 6;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:65:10
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let (h, o, w) = (1, 2, 3);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:65:13
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let (h, o, w) = (1, 2, 3);
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:66:10
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | for (a, (r, e)) in (0..1000).enumerate().enumerate() {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:66:14
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | for (a, (r, e)) in (0..1000).enumerate().enumerate() {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:66:17
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | for (a, (r, e)) in (0..1000).enumerate().enumerate() {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:68:16
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while let (d, o, _i, n, g) = (true, true, false, false, true) {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:68:19
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while let (d, o, _i, n, g) = (true, true, false, false, true) {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:68:29
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while let (d, o, _i, n, g) = (true, true, false, false, true) {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:72:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let o = 1;
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:73:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let o = O { o };
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:87:4
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | fn b() {}
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:88:21
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: this ident consists of a single char
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/min_ident_chars.rs:88:29
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | fn wrong_pythagoras(a: f32, b: f32) -> f32 {
|
|
|
|
| ^
|
|
|
|
|
2024-02-14 15:22:15 -06:00
|
|
|
error: aborting due to 32 previous errors
|
2023-07-02 07:35:19 -05:00
|
|
|
|