2023-05-05 10:45:49 -05:00
|
|
|
error: use of `default` to create a unit struct
|
|
|
|
--> $DIR/default_constructed_unit_structs.rs:13:13
|
|
|
|
|
|
|
|
|
LL | Self::default()
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
|
|
|
--> $DIR/default_constructed_unit_structs.rs:55:31
|
|
|
|
|
|
|
|
|
LL | inner: PhantomData::default(),
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2023-06-02 04:41:57 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:128:33
|
2023-05-05 10:45:49 -05:00
|
|
|
|
|
|
|
|
LL | let _ = PhantomData::<usize>::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2023-06-02 04:41:57 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:129:42
|
2023-05-05 10:45:49 -05:00
|
|
|
|
|
|
|
|
LL | let _: PhantomData<i32> = PhantomData::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2023-06-02 04:41:57 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:130:55
|
2023-05-20 08:39:26 -05:00
|
|
|
|
|
|
|
|
LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2023-06-02 04:41:57 -05:00
|
|
|
--> $DIR/default_constructed_unit_structs.rs:131:23
|
2023-05-05 10:45:49 -05:00
|
|
|
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
2023-05-20 08:39:26 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2023-05-05 10:45:49 -05:00
|
|
|
|