1 error: unnecessary structure name repetition
2 --> $DIR/use_self.rs:15:13
5 | ^^^ help: use the applicable keyword: `Self`
7 = note: `-D clippy::use-self` implied by `-D warnings`
9 error: unnecessary structure name repetition
10 --> $DIR/use_self.rs:14:21
12 LL | fn new() -> Foo {
13 | ^^^ help: use the applicable keyword: `Self`
15 error: unnecessary structure name repetition
16 --> $DIR/use_self.rs:17:22
18 LL | fn test() -> Foo {
19 | ^^^ help: use the applicable keyword: `Self`
21 error: unnecessary structure name repetition
22 --> $DIR/use_self.rs:96:24
24 LL | fn bad(foos: &[Foo]) -> impl Iterator<Item = &Foo> {
25 | ^^^ help: use the applicable keyword: `Self`
27 error: unnecessary structure name repetition
28 --> $DIR/use_self.rs:111:13
31 | ^^ help: use the applicable keyword: `Self`
33 error: unnecessary structure name repetition
34 --> $DIR/use_self.rs:120:17
37 | ^^^ help: use the applicable keyword: `Self`
39 LL | use_self_expand!(); // Should lint in local macros
40 | ------------------- in this macro invocation
42 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
44 error: unnecessary structure name repetition
45 --> $DIR/use_self.rs:119:25
47 LL | fn new() -> Foo {
48 | ^^^ help: use the applicable keyword: `Self`
50 LL | use_self_expand!(); // Should lint in local macros
51 | ------------------- in this macro invocation
53 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
55 error: unnecessary structure name repetition
56 --> $DIR/use_self.rs:144:21
58 LL | Bar { foo: Foo {} }
59 | ^^^ help: use the applicable keyword: `Self`
61 error: unnecessary structure name repetition
62 --> $DIR/use_self.rs:143:29
64 LL | fn bar() -> Bar {
65 | ^^^ help: use the applicable keyword: `Self`
67 error: unnecessary structure name repetition
68 --> $DIR/use_self.rs:156:13
71 | ^^^ help: use the applicable keyword: `Self`
73 error: unnecessary structure name repetition
74 --> $DIR/use_self.rs:155:21
76 LL | fn baz() -> Foo {
77 | ^^^ help: use the applicable keyword: `Self`
79 error: unnecessary structure name repetition
80 --> $DIR/use_self.rs:173:21
82 LL | let _ = Enum::B(42);
83 | ^^^^ help: use the applicable keyword: `Self`
85 error: unnecessary structure name repetition
86 --> $DIR/use_self.rs:174:21
88 LL | let _ = Enum::C { field: true };
89 | ^^^^ help: use the applicable keyword: `Self`
91 error: unnecessary structure name repetition
92 --> $DIR/use_self.rs:175:21
95 | ^^^^ help: use the applicable keyword: `Self`
97 error: unnecessary structure name repetition
98 --> $DIR/use_self.rs:222:13
101 | ^^^^^^^^^ help: use the applicable keyword: `Self`
103 error: unnecessary structure name repetition
104 --> $DIR/use_self.rs:258:13
107 | ^ help: use the applicable keyword: `Self`
109 error: unnecessary structure name repetition
110 --> $DIR/use_self.rs:287:13
113 | ^^^ help: use the applicable keyword: `Self`
115 error: unnecessary structure name repetition
116 --> $DIR/use_self.rs:286:29
118 LL | fn foo(value: T) -> Foo<T> {
119 | ^^^^^^ help: use the applicable keyword: `Self`
121 error: unnecessary structure name repetition
122 --> $DIR/use_self.rs:324:21
124 LL | type From = T::From;
125 | ^^^^^^^ help: use the applicable keyword: `Self`
127 error: unnecessary structure name repetition
128 --> $DIR/use_self.rs:325:19
130 LL | type To = T::To;
131 | ^^^^^ help: use the applicable keyword: `Self`
133 error: aborting due to 20 previous errors