2023-05-01 13:12:34 -05:00
|
|
|
error: use of `default` to create a unit struct
|
2023-05-03 14:05:50 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:13:13
|
2023-04-25 13:44:09 -05:00
|
|
|
|
|
2023-05-03 13:06:29 -05:00
|
|
|
LL | Self::default()
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
2023-04-25 13:44:09 -05:00
|
|
|
|
|
2023-05-03 12:25:25 -05:00
|
|
|
= note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
|
2023-04-25 13:44:09 -05:00
|
|
|
|
2023-05-01 13:12:34 -05:00
|
|
|
error: use of `default` to create a unit struct
|
2023-05-03 14:05:50 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:55:31
|
2023-05-03 13:06:29 -05:00
|
|
|
|
|
|
|
|
LL | inner: PhantomData::default(),
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2023-05-03 14:05:50 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:106:33
|
2023-04-25 13:44:09 -05:00
|
|
|
|
|
|
|
|
LL | let _ = PhantomData::<usize>::default();
|
2023-05-01 13:12:34 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
2023-04-25 13:44:09 -05:00
|
|
|
|
2023-05-01 13:12:34 -05:00
|
|
|
error: use of `default` to create a unit struct
|
2023-05-03 14:05:50 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:107:42
|
2023-04-25 13:44:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: PhantomData<i32> = PhantomData::default();
|
2023-05-01 13:12:34 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
2023-04-25 13:44:09 -05:00
|
|
|
|
2023-05-01 13:12:34 -05:00
|
|
|
error: use of `default` to create a unit struct
|
2023-05-03 14:05:50 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:108:23
|
2023-04-25 13:44:09 -05:00
|
|
|
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
2023-05-01 13:12:34 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
2023-04-25 13:44:09 -05:00
|
|
|
|
2023-05-03 13:06:29 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2023-04-25 13:44:09 -05:00
|
|
|
|