]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/use_self.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / use_self.stderr
CommitLineData
f20569fa
XL
1error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:18:21
3 |
4LL | fn new() -> Foo {
5 | ^^^ help: use the applicable keyword: `Self`
6 |
7 = note: `-D clippy::use-self` implied by `-D warnings`
8
9error: unnecessary structure name repetition
10 --> $DIR/use_self.rs:19:13
11 |
12LL | Foo {}
13 | ^^^ help: use the applicable keyword: `Self`
14
15error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:21:22
17 |
18LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
20
21error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:22:13
23 |
24LL | Foo::new()
25 | ^^^ help: use the applicable keyword: `Self`
26
27error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:27:25
29 |
30LL | fn default() -> Foo {
31 | ^^^ help: use the applicable keyword: `Self`
32
33error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:28:13
35 |
36LL | Foo::new()
37 | ^^^ help: use the applicable keyword: `Self`
38
39error: unnecessary structure name repetition
40 --> $DIR/use_self.rs:93:24
41 |
42LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
43 | ^^^ help: use the applicable keyword: `Self`
44
45error: unnecessary structure name repetition
46 --> $DIR/use_self.rs:93:55
47 |
48LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
49 | ^^^ help: use the applicable keyword: `Self`
50
51error: unnecessary structure name repetition
52 --> $DIR/use_self.rs:108:13
53 |
54LL | TS(0)
55 | ^^ help: use the applicable keyword: `Self`
56
57error: unnecessary structure name repetition
58 --> $DIR/use_self.rs:143:29
59 |
60LL | fn bar() -> Bar {
61 | ^^^ help: use the applicable keyword: `Self`
62
63error: unnecessary structure name repetition
64 --> $DIR/use_self.rs:144:21
65 |
66LL | Bar { foo: Foo {} }
67 | ^^^ help: use the applicable keyword: `Self`
68
69error: unnecessary structure name repetition
70 --> $DIR/use_self.rs:155:21
71 |
72LL | fn baz() -> Foo {
73 | ^^^ help: use the applicable keyword: `Self`
74
75error: unnecessary structure name repetition
76 --> $DIR/use_self.rs:156:13
77 |
78LL | Foo {}
79 | ^^^ help: use the applicable keyword: `Self`
80
81error: unnecessary structure name repetition
82 --> $DIR/use_self.rs:173:21
83 |
84LL | let _ = Enum::B(42);
85 | ^^^^ help: use the applicable keyword: `Self`
86
87error: unnecessary structure name repetition
88 --> $DIR/use_self.rs:174:21
89 |
90LL | let _ = Enum::C { field: true };
91 | ^^^^ help: use the applicable keyword: `Self`
92
93error: unnecessary structure name repetition
94 --> $DIR/use_self.rs:175:21
95 |
96LL | let _ = Enum::A;
97 | ^^^^ help: use the applicable keyword: `Self`
98
99error: unnecessary structure name repetition
100 --> $DIR/use_self.rs:217:13
101 |
102LL | nested::A::fun_1();
103 | ^^^^^^^^^ help: use the applicable keyword: `Self`
104
105error: unnecessary structure name repetition
106 --> $DIR/use_self.rs:218:13
107 |
108LL | nested::A::A;
109 | ^^^^^^^^^ help: use the applicable keyword: `Self`
110
111error: unnecessary structure name repetition
112 --> $DIR/use_self.rs:220:13
113 |
114LL | nested::A {};
115 | ^^^^^^^^^ help: use the applicable keyword: `Self`
116
117error: unnecessary structure name repetition
118 --> $DIR/use_self.rs:239:13
119 |
120LL | TestStruct::from_something()
121 | ^^^^^^^^^^ help: use the applicable keyword: `Self`
122
123error: unnecessary structure name repetition
124 --> $DIR/use_self.rs:253:25
125 |
126LL | async fn g() -> S {
127 | ^ help: use the applicable keyword: `Self`
128
129error: unnecessary structure name repetition
130 --> $DIR/use_self.rs:254:13
131 |
132LL | S {}
133 | ^ help: use the applicable keyword: `Self`
134
135error: unnecessary structure name repetition
136 --> $DIR/use_self.rs:258:16
137 |
138LL | &p[S::A..S::B]
139 | ^ help: use the applicable keyword: `Self`
140
141error: unnecessary structure name repetition
142 --> $DIR/use_self.rs:258:22
143 |
144LL | &p[S::A..S::B]
145 | ^ help: use the applicable keyword: `Self`
146
147error: unnecessary structure name repetition
148 --> $DIR/use_self.rs:281:29
149 |
150LL | fn foo(value: T) -> Foo<T> {
151 | ^^^^^^ help: use the applicable keyword: `Self`
152
153error: unnecessary structure name repetition
154 --> $DIR/use_self.rs:282:13
155 |
156LL | Foo { value }
157 | ^^^ help: use the applicable keyword: `Self`
158
159error: unnecessary structure name repetition
160 --> $DIR/use_self.rs:454:13
161 |
162LL | A::new::<submod::B>(submod::B {})
163 | ^ help: use the applicable keyword: `Self`
164
165error: aborting due to 27 previous errors
166