You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
468 B
12 lines
468 B
error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &mut TheType`
|
|
--> $DIR/unnamed_receiver.rs:6:14
|
|
|
|
|
6 | fn f(&mut self);
|
|
| ^^^^^^^^^
|
|
|
|
error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &TheType`
|
|
--> $DIR/unnamed_receiver.rs:10:20
|
|
|
|
|
10 | fn f(self: &Self);
|
|
| ^^^^^
|