mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
40 lines
1.5 KiB
Text
40 lines
1.5 KiB
Text
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
|
|
--> $DIR/default_constructed_unit_structs.rs:106:33
|
|
|
|
|
LL | let _ = PhantomData::<usize>::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_structs.rs:107:42
|
|
|
|
|
LL | let _: PhantomData<i32> = PhantomData::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_structs.rs:108:55
|
|
|
|
|
LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_structs.rs:109:23
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|