|
| 1 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 2 | + --> $DIR/lot-of-references-self.rs:4:16 |
| 3 | + | |
| 4 | +LL | fn a(&&self) {} |
| 5 | + | ^ expected one of 9 possible tokens |
| 6 | + | |
| 7 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 8 | + | |
| 9 | +LL - fn a(&&self) {} |
| 10 | +LL + fn a(&self) {} |
| 11 | + | |
| 12 | +help: or if you want exactly &&self, please write it like this |
| 13 | + | |
| 14 | +LL - fn a(&&self) {} |
| 15 | +LL + fn a(self: &&Self) {} |
| 16 | + | |
| 17 | + |
| 18 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 19 | + --> $DIR/lot-of-references-self.rs:8:20 |
| 20 | + | |
| 21 | +LL | fn b(&&&&&&self) {} |
| 22 | + | ^ expected one of 9 possible tokens |
| 23 | + | |
| 24 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 25 | + | |
| 26 | +LL - fn b(&&&&&&self) {} |
| 27 | +LL + fn b(&self) {} |
| 28 | + | |
| 29 | +help: or if you want exactly &&&&&&self, please write it like this |
| 30 | + | |
| 31 | +LL - fn b(&&&&&&self) {} |
| 32 | +LL + fn b(self: &&&&&&Self) {} |
| 33 | + | |
| 34 | + |
| 35 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 36 | + --> $DIR/lot-of-references-self.rs:13:20 |
| 37 | + | |
| 38 | +LL | fn d(&mut &self) {} |
| 39 | + | ^ expected one of 9 possible tokens |
| 40 | + | |
| 41 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 42 | + | |
| 43 | +LL - fn d(&mut &self) {} |
| 44 | +LL + fn d(&self) {} |
| 45 | + | |
| 46 | +help: or if you want exactly &mut &self, please write it like this |
| 47 | + | |
| 48 | +LL - fn d(&mut &self) {} |
| 49 | +LL + fn d(self: &mut &Self) {} |
| 50 | + | |
| 51 | + |
| 52 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 53 | + --> $DIR/lot-of-references-self.rs:17:22 |
| 54 | + | |
| 55 | +LL | fn e(&mut &&&self) {} |
| 56 | + | ^ expected one of 9 possible tokens |
| 57 | + | |
| 58 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 59 | + | |
| 60 | +LL - fn e(&mut &&&self) {} |
| 61 | +LL + fn e(&self) {} |
| 62 | + | |
| 63 | +help: or if you want exactly &mut &&&self, please write it like this |
| 64 | + | |
| 65 | +LL - fn e(&mut &&&self) {} |
| 66 | +LL + fn e(self: &mut &&&Self) {} |
| 67 | + | |
| 68 | + |
| 69 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 70 | + --> $DIR/lot-of-references-self.rs:21:29 |
| 71 | + | |
| 72 | +LL | fn f(&mut &mut &mut self) {} |
| 73 | + | ^ expected one of 9 possible tokens |
| 74 | + | |
| 75 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 76 | + | |
| 77 | +LL - fn f(&mut &mut &mut self) {} |
| 78 | +LL + fn f(&mut self) {} |
| 79 | + | |
| 80 | +help: or if you want exactly &mut &mut &mut self, please write it like this |
| 81 | + | |
| 82 | +LL - fn f(&mut &mut &mut self) {} |
| 83 | +LL + fn f(self: &mut &mut &mut Self) {} |
| 84 | + | |
| 85 | + |
| 86 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 87 | + --> $DIR/lot-of-references-self.rs:25:26 |
| 88 | + | |
| 89 | +LL | fn g(&mut & &mut self) {} |
| 90 | + | ^ expected one of 9 possible tokens |
| 91 | + | |
| 92 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 93 | + | |
| 94 | +LL - fn g(&mut & &mut self) {} |
| 95 | +LL + fn g(&mut self) {} |
| 96 | + | |
| 97 | +help: or if you want exactly &mut &&mut self, please write it like this |
| 98 | + | |
| 99 | +LL - fn g(&mut & &mut self) {} |
| 100 | +LL + fn g(self: &mut &&mut Self) {} |
| 101 | + | |
| 102 | + |
| 103 | +error: expected one of `!`, `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` |
| 104 | + --> $DIR/lot-of-references-self.rs:29:39 |
| 105 | + | |
| 106 | +LL | fn h(&mut & & & && & & self) {} |
| 107 | + | ^ expected one of 9 possible tokens |
| 108 | + | |
| 109 | +help: `self` should be `self`, `&self` or `&mut self`, please remove extra references |
| 110 | + | |
| 111 | +LL - fn h(&mut & & & && & & self) {} |
| 112 | +LL + fn h(& self) {} |
| 113 | + | |
| 114 | +help: or if you want exactly &mut &&&&&&&self, please write it like this |
| 115 | + | |
| 116 | +LL - fn h(&mut & & & && & & self) {} |
| 117 | +LL + fn h(self: &mut &&&&&&&Self) {} |
| 118 | + | |
| 119 | + |
| 120 | +error: aborting due to 7 previous errors |
| 121 | + |
0 commit comments