]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
use_self - fix issue with `hir_ty_to_ty`
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:15:13
3    |
4 LL |             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:14:21
11    |
12 LL |         fn new() -> 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:96:24
23    |
24 LL |         fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
25    |                        ^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:111:13
29    |
30 LL |             TS(0)
31    |             ^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:120:17
35    |
36 LL |                 Foo {}
37    |                 ^^^ help: use the applicable keyword: `Self`
38 ...
39 LL |         use_self_expand!(); // Should lint in local macros
40    |         ------------------- in this macro invocation
41    |
42    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
43
44 error: unnecessary structure name repetition
45   --> $DIR/use_self.rs:119:25
46    |
47 LL |             fn new() -> Foo {
48    |                         ^^^ help: use the applicable keyword: `Self`
49 ...
50 LL |         use_self_expand!(); // Should lint in local macros
51    |         ------------------- in this macro invocation
52    |
53    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
54
55 error: unnecessary structure name repetition
56   --> $DIR/use_self.rs:144:21
57    |
58 LL |                     Bar { foo: Foo {} }
59    |                     ^^^ help: use the applicable keyword: `Self`
60
61 error: unnecessary structure name repetition
62   --> $DIR/use_self.rs:143: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:156:13
69    |
70 LL |             Foo {}
71    |             ^^^ help: use the applicable keyword: `Self`
72
73 error: unnecessary structure name repetition
74   --> $DIR/use_self.rs:155: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:173:21
81    |
82 LL |             let _ = Enum::B(42);
83    |                     ^^^^ help: use the applicable keyword: `Self`
84
85 error: unnecessary structure name repetition
86   --> $DIR/use_self.rs:174:21
87    |
88 LL |             let _ = Enum::C { field: true };
89    |                     ^^^^ help: use the applicable keyword: `Self`
90
91 error: unnecessary structure name repetition
92   --> $DIR/use_self.rs:175:21
93    |
94 LL |             let _ = Enum::A;
95    |                     ^^^^ help: use the applicable keyword: `Self`
96
97 error: unnecessary structure name repetition
98   --> $DIR/use_self.rs:222:13
99    |
100 LL |             nested::A {};
101    |             ^^^^^^^^^ help: use the applicable keyword: `Self`
102
103 error: unnecessary structure name repetition
104   --> $DIR/use_self.rs:258:13
105    |
106 LL |             S {}
107    |             ^ help: use the applicable keyword: `Self`
108
109 error: unnecessary structure name repetition
110   --> $DIR/use_self.rs:287:13
111    |
112 LL |             Foo { value }
113    |             ^^^ help: use the applicable keyword: `Self`
114
115 error: unnecessary structure name repetition
116   --> $DIR/use_self.rs:286: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:324:21
123    |
124 LL |         type From = T::From;
125    |                     ^^^^^^^ help: use the applicable keyword: `Self`
126
127 error: unnecessary structure name repetition
128   --> $DIR/use_self.rs:325:19
129    |
130 LL |         type To = T::To;
131    |                   ^^^^^ help: use the applicable keyword: `Self`
132
133 error: aborting due to 20 previous errors
134