]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
Merge branch 'master' into fix-3514
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:20:21
3    |
4 20 |         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:21:13
11    |
12 21 |             Foo {}
13    |             ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self.rs:23:22
17    |
18 23 |         fn test() -> Foo {
19    |                      ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self.rs:24:13
23    |
24 24 |             Foo::new()
25    |             ^^^^^^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:29:25
29    |
30 29 |         fn default() -> Foo {
31    |                         ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:30:13
35    |
36 30 |             Foo::new()
37    |             ^^^^^^^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self.rs:96:22
41    |
42 96 |         fn refs(p1: &Bad) -> &Bad {
43    |                      ^^^ help: use the applicable keyword: `Self`
44
45 error: unnecessary structure name repetition
46   --> $DIR/use_self.rs:96:31
47    |
48 96 |         fn refs(p1: &Bad) -> &Bad {
49    |                               ^^^ help: use the applicable keyword: `Self`
50
51 error: unnecessary structure name repetition
52    --> $DIR/use_self.rs:100:37
53     |
54 100 |         fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
55     |                                     ^^^ help: use the applicable keyword: `Self`
56
57 error: unnecessary structure name repetition
58    --> $DIR/use_self.rs:100:53
59     |
60 100 |         fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
61     |                                                     ^^^ help: use the applicable keyword: `Self`
62
63 error: unnecessary structure name repetition
64    --> $DIR/use_self.rs:104:30
65     |
66 104 |         fn mut_refs(p1: &mut Bad) -> &mut Bad {
67     |                              ^^^ help: use the applicable keyword: `Self`
68
69 error: unnecessary structure name repetition
70    --> $DIR/use_self.rs:104:43
71     |
72 104 |         fn mut_refs(p1: &mut Bad) -> &mut Bad {
73     |                                           ^^^ help: use the applicable keyword: `Self`
74
75 error: unnecessary structure name repetition
76    --> $DIR/use_self.rs:108:28
77     |
78 108 |         fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
79     |                            ^^^ help: use the applicable keyword: `Self`
80
81 error: unnecessary structure name repetition
82    --> $DIR/use_self.rs:108:46
83     |
84 108 |         fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
85     |                                              ^^^ help: use the applicable keyword: `Self`
86
87 error: unnecessary structure name repetition
88    --> $DIR/use_self.rs:110:20
89     |
90 110 |         fn vals(_: Bad) -> Bad {
91     |                    ^^^ help: use the applicable keyword: `Self`
92
93 error: unnecessary structure name repetition
94    --> $DIR/use_self.rs:110:28
95     |
96 110 |         fn vals(_: Bad) -> Bad {
97     |                            ^^^ help: use the applicable keyword: `Self`
98
99 error: unnecessary structure name repetition
100    --> $DIR/use_self.rs:111:13
101     |
102 111 |             Bad::default()
103     |             ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
104
105 error: unnecessary structure name repetition
106    --> $DIR/use_self.rs:116:23
107     |
108 116 |         type Output = Bad;
109     |                       ^^^ help: use the applicable keyword: `Self`
110
111 error: unnecessary structure name repetition
112    --> $DIR/use_self.rs:118:27
113     |
114 118 |         fn mul(self, rhs: Bad) -> Bad {
115     |                           ^^^ help: use the applicable keyword: `Self`
116
117 error: unnecessary structure name repetition
118    --> $DIR/use_self.rs:118:35
119     |
120 118 |         fn mul(self, rhs: Bad) -> Bad {
121     |                                   ^^^ help: use the applicable keyword: `Self`
122
123 error: unnecessary structure name repetition
124    --> $DIR/use_self.rs:210:56
125     |
126 210 |         fn bad(foos: &[Self]) -> impl Iterator<Item = &Foo> {
127     |                                                        ^^^ help: use the applicable keyword: `Self`
128
129 error: aborting due to 21 previous errors
130