summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/default_constructed_unit_structs.stderr
blob: 434c72aa9b174f0629b8e2df588ced4a2a99869c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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`
   = help: to override `-D warnings` add `#[allow(clippy::default_constructed_unit_structs)]`

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:126: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:127: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: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
  --> $DIR/default_constructed_unit_structs.rs:129:23
   |
LL |     let _ = UnitStruct::default();
   |                       ^^^^^^^^^^^ help: remove this call to `default`

error: aborting due to 6 previous errors