|
1 |
| -error: Use of `default` to create a unit struct. |
2 |
| - --> $DIR/default_constructed_unit_struct.rs:39:33 |
| 1 | +error: use of `default` to create a unit struct |
| 2 | + --> $DIR/default_constructed_unit_struct.rs:39:31 |
3 | 3 | |
|
4 | 4 | LL | inner: PhantomData::default(),
|
5 |
| - | ^^^^^^^ help: remove this call to `default` |
| 5 | + | ^^^^^^^^^^^ help: remove this call to `default` |
6 | 6 | |
|
7 | 7 | = note: `-D clippy::default-constructed-unit-struct` implied by `-D warnings`
|
8 | 8 |
|
9 |
| -error: Use of `default` to create a unit struct. |
10 |
| - --> $DIR/default_constructed_unit_struct.rs:62:35 |
| 9 | +error: use of `default` to create a unit struct |
| 10 | + --> $DIR/default_constructed_unit_struct.rs:62:33 |
11 | 11 | |
|
12 | 12 | LL | let _ = PhantomData::<usize>::default();
|
13 |
| - | ^^^^^^^ help: remove this call to `default` |
| 13 | + | ^^^^^^^^^^^ help: remove this call to `default` |
14 | 14 |
|
15 |
| -error: Use of `default` to create a unit struct. |
16 |
| - --> $DIR/default_constructed_unit_struct.rs:63:44 |
| 15 | +error: use of `default` to create a unit struct |
| 16 | + --> $DIR/default_constructed_unit_struct.rs:63:42 |
17 | 17 | |
|
18 | 18 | LL | let _: PhantomData<i32> = PhantomData::default();
|
19 |
| - | ^^^^^^^ help: remove this call to `default` |
| 19 | + | ^^^^^^^^^^^ help: remove this call to `default` |
20 | 20 |
|
21 |
| -error: Use of `default` to create a unit struct. |
22 |
| - --> $DIR/default_constructed_unit_struct.rs:64:25 |
| 21 | +error: use of `default` to create a unit struct |
| 22 | + --> $DIR/default_constructed_unit_struct.rs:64:23 |
23 | 23 | |
|
24 | 24 | LL | let _ = UnitStruct::default();
|
25 |
| - | ^^^^^^^ help: remove this call to `default` |
| 25 | + | ^^^^^^^^^^^ help: remove this call to `default` |
26 | 26 |
|
27 | 27 | error: aborting due to 4 previous errors
|
28 | 28 |
|
0 commit comments