2023-05-05 15:45:49 +00:00
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:11:13
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
|
LL | Self::default()
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::default_constructed_unit_structs)]`
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:53:31
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
|
LL | inner: PhantomData::default(),
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:126:33
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
|
LL | let _ = PhantomData::<usize>::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:127:42
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
|
LL | let _: PhantomData<i32> = PhantomData::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:128:55
|
2023-05-20 13:39:26 +00:00
|
|
|
|
|
|
|
|
LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
|
|
|
error: use of `default` to create a unit struct
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/default_constructed_unit_structs.rs:129:23
|
2023-05-05 15:45:49 +00:00
|
|
|
|
|
|
|
|
LL | let _ = UnitStruct::default();
|
|
|
|
| ^^^^^^^^^^^ help: remove this call to `default`
|
|
|
|
|
2023-05-20 13:39:26 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2023-05-05 15:45:49 +00:00
|
|
|
|