rust/tests/ui/default_constructed_unit_structs.stderr
2023-05-03 20:55:14 +02:00

35 lines
1.3 KiB
Plaintext

error: use of `default` to create a unit struct
--> $DIR/default_constructed_unit_structs.rs:11: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:53: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:104: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:105: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:106:23
|
LL | let _ = UnitStruct::default();
| ^^^^^^^^^^^ help: remove this call to `default`
error: aborting due to 5 previous errors