]> git.lizzy.rs Git - rust.git/blob - tests/ui/use_self_trait.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / use_self_trait.stderr
1 error: unnecessary structure name repetition
2   --> $DIR/use_self_trait.rs:21:18
3    |
4 LL |     fn refs(p1: &Bad) -> &Bad {
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_trait.rs:21:27
11    |
12 LL |     fn refs(p1: &Bad) -> &Bad {
13    |                           ^^^ help: use the applicable keyword: `Self`
14
15 error: unnecessary structure name repetition
16   --> $DIR/use_self_trait.rs:25:33
17    |
18 LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
19    |                                 ^^^ help: use the applicable keyword: `Self`
20
21 error: unnecessary structure name repetition
22   --> $DIR/use_self_trait.rs:25:49
23    |
24 LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
25    |                                                 ^^^ help: use the applicable keyword: `Self`
26
27 error: unnecessary structure name repetition
28   --> $DIR/use_self_trait.rs:29:26
29    |
30 LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
31    |                          ^^^ help: use the applicable keyword: `Self`
32
33 error: unnecessary structure name repetition
34   --> $DIR/use_self_trait.rs:29:39
35    |
36 LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
37    |                                       ^^^ help: use the applicable keyword: `Self`
38
39 error: unnecessary structure name repetition
40   --> $DIR/use_self_trait.rs:33:24
41    |
42 LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
43    |                        ^^^ help: use the applicable keyword: `Self`
44
45 error: unnecessary structure name repetition
46   --> $DIR/use_self_trait.rs:33:42
47    |
48 LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
49    |                                          ^^^ help: use the applicable keyword: `Self`
50
51 error: unnecessary structure name repetition
52   --> $DIR/use_self_trait.rs:35:16
53    |
54 LL |     fn vals(_: Bad) -> Bad {
55    |                ^^^ help: use the applicable keyword: `Self`
56
57 error: unnecessary structure name repetition
58   --> $DIR/use_self_trait.rs:35:24
59    |
60 LL |     fn vals(_: Bad) -> Bad {
61    |                        ^^^ help: use the applicable keyword: `Self`
62
63 error: unnecessary structure name repetition
64   --> $DIR/use_self_trait.rs:36:9
65    |
66 LL |         Bad::default()
67    |         ^^^ help: use the applicable keyword: `Self`
68
69 error: unnecessary structure name repetition
70   --> $DIR/use_self_trait.rs:41:19
71    |
72 LL |     type Output = Bad;
73    |                   ^^^ help: use the applicable keyword: `Self`
74
75 error: unnecessary structure name repetition
76   --> $DIR/use_self_trait.rs:43:23
77    |
78 LL |     fn mul(self, rhs: Bad) -> Bad {
79    |                       ^^^ help: use the applicable keyword: `Self`
80
81 error: unnecessary structure name repetition
82   --> $DIR/use_self_trait.rs:43:31
83    |
84 LL |     fn mul(self, rhs: Bad) -> Bad {
85    |                               ^^^ help: use the applicable keyword: `Self`
86
87 error: unnecessary structure name repetition
88   --> $DIR/use_self_trait.rs:50:9
89    |
90 LL |         Bad
91    |         ^^^ help: use the applicable keyword: `Self`
92
93 error: aborting due to 15 previous errors
94