| David Tolnay | ab73957 | 2020-04-22 18:21:43 -0700 | [diff] [blame] | 1 | error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &mut TheType` |
| 2 | --> $DIR/unnamed_receiver.rs:6:14 | ||||
| 3 | | | ||||
| 4 | 6 | fn f(&mut self); | ||||
| 5 | | ^^^^^^^^^ | ||||
| 6 | |||||
| 7 | error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &TheType` | ||||
| 8 | --> $DIR/unnamed_receiver.rs:10:20 | ||||
| 9 | | | ||||
| 10 | 10 | fn f(self: &Self); | ||||
| 11 | | ^^^^^ | ||||