about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/default_constructed_unit_structs.stderr
blob: 97fad792e4f7a359c478e82d28c35f6ab510fa33 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:11:9
   |
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
  --> tests/ui/default_constructed_unit_structs.rs:54:20
   |
LL |             inner: PhantomData::default(),
   |                    ^^^^^^^^^^^-----------
   |                               |
   |                               help: remove this call to `default`

error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:128:13
   |
LL |     let _ = PhantomData::<usize>::default();
   |             ^^^^^^^^^^^^^^^^^^^^-----------
   |                                 |
   |                                 help: remove this call to `default`

error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:130:31
   |
LL |     let _: PhantomData<i32> = PhantomData::default();
   |                               ^^^^^^^^^^^-----------
   |                                          |
   |                                          help: remove this call to `default`

error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:132:31
   |
LL |     let _: PhantomData<i32> = std::marker::PhantomData::default();
   |                               ^^^^^^^^^^^^^^^^^^^^^^^^-----------
   |                                                       |
   |                                                       help: remove this call to `default`

error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:134:13
   |
LL |     let _ = UnitStruct::default();
   |             ^^^^^^^^^^-----------
   |                       |
   |                       help: remove this call to `default`

error: use of `default` to create a unit struct
  --> tests/ui/default_constructed_unit_structs.rs:172:7
   |
LL |     f(<G>::default());
   |       ^^^^^^^^^^^^^^
   |
help: remove this call to `default`
   |
LL -     f(<G>::default());
LL +     f(G);
   |

error: aborting due to 7 previous errors