mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_struct.rs:39:31
|
|
|
|
|
LL | inner: PhantomData::default(),
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
= note: `-D clippy::default-constructed-unit-struct` implied by `-D warnings`
|
|
|
|
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_struct.rs:62: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_struct.rs:63: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_struct.rs:64:23
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|