29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
error: use of `default` to create a unit struct
|
|
--> $DIR/default_constructed_unit_structs.rs:39:31
|
|
|
|
|
LL | inner: PhantomData::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: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_structs.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_structs.rs:64:23
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|