]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/default_constructed_unit_structs.stderr
New upstream version 1.71.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / default_constructed_unit_structs.stderr
1 error: use of `default` to create a unit struct
2 --> $DIR/default_constructed_unit_structs.rs:13:13
3 |
4 LL | Self::default()
5 | ^^^^^^^^^^^ help: remove this call to `default`
6 |
7 = note: `-D clippy::default-constructed-unit-structs` implied by `-D warnings`
8
9 error: use of `default` to create a unit struct
10 --> $DIR/default_constructed_unit_structs.rs:55:31
11 |
12 LL | inner: PhantomData::default(),
13 | ^^^^^^^^^^^ help: remove this call to `default`
14
15 error: use of `default` to create a unit struct
16 --> $DIR/default_constructed_unit_structs.rs:128:33
17 |
18 LL | let _ = PhantomData::<usize>::default();
19 | ^^^^^^^^^^^ help: remove this call to `default`
20
21 error: use of `default` to create a unit struct
22 --> $DIR/default_constructed_unit_structs.rs:129:42
23 |
24 LL | let _: PhantomData<i32> = PhantomData::default();
25 | ^^^^^^^^^^^ help: remove this call to `default`
26
27 error: use of `default` to create a unit struct
28 --> $DIR/default_constructed_unit_structs.rs:130:55
29 |
30 LL | let _: PhantomData<i32> = std::marker::PhantomData::default();
31 | ^^^^^^^^^^^ help: remove this call to `default`
32
33 error: use of `default` to create a unit struct
34 --> $DIR/default_constructed_unit_structs.rs:131:23
35 |
36 LL | let _ = UnitStruct::default();
37 | ^^^^^^^^^^^ help: remove this call to `default`
38
39 error: aborting due to 6 previous errors
40