]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self.stderr
Fix use_self regressions
[rust.git] / tests / ui / use_self.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self.rs:11:21
3    |
4 11 |         fn new() -> Foo {
5    |                     ^^^ help: use the applicable keyword: `Self`
6    |
7    = note: `-D use-self` implied by `-D warnings`
8
9 error: unnecessary structure name repetition
10   --> $DIR/use_self.rs:12:13
11    |
12 12 |             Foo {}
13    |             ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self.rs:14:22
17    |
18 14 |         fn test() -> Foo {
19    |                      ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self.rs:15:13
23    |
24 15 |             Foo::new()
25    |             ^^^^^^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self.rs:20:25
29    |
30 20 |         fn default() -> Foo {
31    |                         ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self.rs:21:13
35    |
36 21 |             Foo::new()
37    |             ^^^^^^^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self.rs:84:22
41    |
42 84 |         fn refs(p1: &Bad) -> &Bad {
43    |                      ^^^ help: use the applicable keyword: `Self`
44
45 error: unnecessary structure name repetition
46   --> $DIR/use_self.rs:84:31
47    |
48 84 |         fn refs(p1: &Bad) -> &Bad {
49    |                               ^^^ help: use the applicable keyword: `Self`
50
51 error: unnecessary structure name repetition
52   --> $DIR/use_self.rs:88:37
53    |
54 88 |         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:88:53
59    |
60 88 |         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:92:30
65    |
66 92 |         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:92:43
71    |
72 92 |         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:96:28
77    |
78 96 |         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:96:46
83    |
84 96 |         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:99:20
89    |
90 99 |         fn vals(_: Bad) -> Bad {
91    |                    ^^^ help: use the applicable keyword: `Self`
92
93 error: unnecessary structure name repetition
94   --> $DIR/use_self.rs:99:28
95    |
96 99 |         fn vals(_: Bad) -> Bad {
97    |                            ^^^ help: use the applicable keyword: `Self`
98
99 error: unnecessary structure name repetition
100    --> $DIR/use_self.rs:100:13
101     |
102 100 |             Bad::default()
103     |             ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
104
105 error: unnecessary structure name repetition
106    --> $DIR/use_self.rs:105:23
107     |
108 105 |         type Output = Bad;
109     |                       ^^^ help: use the applicable keyword: `Self`
110
111 error: unnecessary structure name repetition
112    --> $DIR/use_self.rs:107:27
113     |
114 107 |         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:107:35
119     |
120 107 |         fn mul(self, rhs: Bad) -> Bad {
121     |                                   ^^^ help: use the applicable keyword: `Self`
122
123 error: aborting due to 20 previous errors
124