]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
rework use_self impl based on ty::Ty comparison
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:14:21
3    |
4 LL |         fn new() -> Foo {
5    |                     ^^^ help: use the applicable keyword: `Self`
6    |
7    = note: `-D clippy::use-self` implied by `-D warnings`
8
9 error: unnecessary structure name repetition
10   --> $DIR/use_self.rs:15:13
11    |
12 LL |             Foo {}
13    |             ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self.rs:17:22
17    |
18 LL |         fn test() -> Foo {
19    |                      ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self.rs:23:25
23    |
24 LL |         fn default() -> Foo {
25    |                         ^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:94:24
29    |
30 LL |         fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
31    |                        ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:109:13
35    |
36 LL |             TS(0)
37    |             ^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self.rs:117:25
41    |
42 LL |             fn new() -> Foo {
43    |                         ^^^ help: use the applicable keyword: `Self`
44 ...
45 LL |         use_self_expand!(); // Should lint in local macros
46    |         ------------------- in this macro invocation
47    |
48    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
49
50 error: unnecessary structure name repetition
51   --> $DIR/use_self.rs:118:17
52    |
53 LL |                 Foo {}
54    |                 ^^^ help: use the applicable keyword: `Self`
55 ...
56 LL |         use_self_expand!(); // Should lint in local macros
57    |         ------------------- in this macro invocation
58    |
59    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60
61 error: unnecessary structure name repetition
62   --> $DIR/use_self.rs:141:29
63    |
64 LL |                 fn bar() -> Bar {
65    |                             ^^^ help: use the applicable keyword: `Self`
66
67 error: unnecessary structure name repetition
68   --> $DIR/use_self.rs:142:21
69    |
70 LL |                     Bar { foo: Foo {} }
71    |                     ^^^ help: use the applicable keyword: `Self`
72
73 error: unnecessary structure name repetition
74   --> $DIR/use_self.rs:153:21
75    |
76 LL |         fn baz() -> Foo {
77    |                     ^^^ help: use the applicable keyword: `Self`
78
79 error: unnecessary structure name repetition
80   --> $DIR/use_self.rs:154:13
81    |
82 LL |             Foo {}
83    |             ^^^ help: use the applicable keyword: `Self`
84
85 error: unnecessary structure name repetition
86   --> $DIR/use_self.rs:171:21
87    |
88 LL |             let _ = Enum::B(42);
89    |                     ^^^^ help: use the applicable keyword: `Self`
90
91 error: unnecessary structure name repetition
92   --> $DIR/use_self.rs:172:21
93    |
94 LL |             let _ = Enum::C { field: true };
95    |                     ^^^^ help: use the applicable keyword: `Self`
96
97 error: unnecessary structure name repetition
98   --> $DIR/use_self.rs:173:21
99    |
100 LL |             let _ = Enum::A;
101    |                     ^^^^ help: use the applicable keyword: `Self`
102
103 error: unnecessary structure name repetition
104   --> $DIR/use_self.rs:218:13
105    |
106 LL |             nested::A {};
107    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
108
109 error: unnecessary structure name repetition
110   --> $DIR/use_self.rs:254:13
111    |
112 LL |             S {}
113    |             ^ help: use the applicable keyword: `Self`
114
115 error: unnecessary structure name repetition
116   --> $DIR/use_self.rs:282:29
117    |
118 LL |         fn foo(value: T) -> Foo<T> {
119    |                             ^^^^^^ help: use the applicable keyword: `Self`
120
121 error: unnecessary structure name repetition
122   --> $DIR/use_self.rs:283:13
123    |
124 LL |             Foo { value }
125    |             ^^^ help: use the applicable keyword: `Self`
126
127 error: unnecessary structure name repetition
128   --> $DIR/use_self.rs:320:21
129    |
130 LL |         type From = T::From;
131    |                     ^^^^^^^ help: use the applicable keyword: `Self`
132
133 error: unnecessary structure name repetition
134   --> $DIR/use_self.rs:321:19
135    |
136 LL |         type To = T::To;
137    |                   ^^^^^ help: use the applicable keyword: `Self`
138
139 error: aborting due to 21 previous errors
140