rust-clippy/tests/ui/default_constructed_unit_structs.stderr

41 lines
1.5 KiB
Text
Raw Normal View History

2023-05-01 18:12:34 +00:00
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:11:13
|
2023-05-03 18:06:29 +00:00
LL | Self::default()
| ^^^^^^^^^^^ help: remove this call to `default`
|
2023-05-03 17:25:25 +00:00
= note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
2023-05-01 18:12:34 +00:00
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:53:31
2023-05-03 18:06:29 +00:00
|
LL | inner: PhantomData::default(),
| ^^^^^^^^^^^ help: remove this call to `default`
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:126:33
|
LL | let _ = PhantomData::<usize>::default();
2023-05-01 18:12:34 +00:00
| ^^^^^^^^^^^ help: remove this call to `default`
2023-05-01 18:12:34 +00:00
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:127:42
|
LL | let _: PhantomData<i32> = PhantomData::default();
2023-05-01 18:12:34 +00:00
| ^^^^^^^^^^^ help: remove this call to `default`
2023-05-01 18:12:34 +00:00
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:128:55
|
LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
| ^^^^^^^^^^^ help: remove this call to `default`
error: use of `default` to create a unit struct
2023-07-27 11:40:22 +00:00
--> $DIR/default_constructed_unit_structs.rs:129:23
|
LL | let _ = UnitStruct::default();
2023-05-01 18:12:34 +00:00
| ^^^^^^^^^^^ help: remove this call to `default`
error: aborting due to 6 previous errors