|
1 | 1 | error: use of `default` to create a unit struct
|
2 |
| - --> tests/ui/default_constructed_unit_structs.rs:11:13 |
| 2 | + --> tests/ui/default_constructed_unit_structs.rs:11:9 |
3 | 3 | |
|
4 | 4 | LL | Self::default()
|
5 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 5 | + | ^^^^----------- |
| 6 | + | | |
| 7 | + | help: remove this call to `default` |
6 | 8 | |
|
7 | 9 | = note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
|
8 | 10 | = help: to override `-D warnings` add `#[allow(clippy::default_constructed_unit_structs)]`
|
9 | 11 |
|
10 | 12 | error: use of `default` to create a unit struct
|
11 |
| - --> tests/ui/default_constructed_unit_structs.rs:54:31 |
| 13 | + --> tests/ui/default_constructed_unit_structs.rs:54:20 |
12 | 14 | |
|
13 | 15 | LL | inner: PhantomData::default(),
|
14 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 16 | + | ^^^^^^^^^^^----------- |
| 17 | + | | |
| 18 | + | help: remove this call to `default` |
15 | 19 |
|
16 | 20 | error: use of `default` to create a unit struct
|
17 |
| - --> tests/ui/default_constructed_unit_structs.rs:128:33 |
| 21 | + --> tests/ui/default_constructed_unit_structs.rs:128:13 |
18 | 22 | |
|
19 | 23 | LL | let _ = PhantomData::<usize>::default();
|
20 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^----------- |
| 25 | + | | |
| 26 | + | help: remove this call to `default` |
21 | 27 |
|
22 | 28 | error: use of `default` to create a unit struct
|
23 |
| - --> tests/ui/default_constructed_unit_structs.rs:130:42 |
| 29 | + --> tests/ui/default_constructed_unit_structs.rs:130:31 |
24 | 30 | |
|
25 | 31 | LL | let _: PhantomData<i32> = PhantomData::default();
|
26 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 32 | + | ^^^^^^^^^^^----------- |
| 33 | + | | |
| 34 | + | help: remove this call to `default` |
27 | 35 |
|
28 | 36 | error: use of `default` to create a unit struct
|
29 |
| - --> tests/ui/default_constructed_unit_structs.rs:132:55 |
| 37 | + --> tests/ui/default_constructed_unit_structs.rs:132:31 |
30 | 38 | |
|
31 | 39 | LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
|
32 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 40 | + | ^^^^^^^^^^^^^^^^^^^^^^^^----------- |
| 41 | + | | |
| 42 | + | help: remove this call to `default` |
33 | 43 |
|
34 | 44 | error: use of `default` to create a unit struct
|
35 |
| - --> tests/ui/default_constructed_unit_structs.rs:134:23 |
| 45 | + --> tests/ui/default_constructed_unit_structs.rs:134:13 |
36 | 46 | |
|
37 | 47 | LL | let _ = UnitStruct::default();
|
38 |
| - | ^^^^^^^^^^^ help: remove this call to `default` |
| 48 | + | ^^^^^^^^^^----------- |
| 49 | + | | |
| 50 | + | help: remove this call to `default` |
39 | 51 |
|
40 |
| -error: aborting due to 6 previous errors |
| 52 | +error: use of `default` to create a unit struct |
| 53 | + --> tests/ui/default_constructed_unit_structs.rs:172:7 |
| 54 | + | |
| 55 | +LL | f(<G>::default()); |
| 56 | + | ^^^^^^^^^^^^^^ |
| 57 | + | |
| 58 | +help: remove this call to `default` |
| 59 | + | |
| 60 | +LL - f(<G>::default()); |
| 61 | +LL + f(G); |
| 62 | + | |
| 63 | + |
| 64 | +error: aborting due to 7 previous errors |
41 | 65 |
|
0 commit comments