blob: ca97e6989940a9eac1abdcd8bfe41625104fc561 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 | fn module() {
    fn test(&mut self) {
    //~^ ERROR `self` parameter is only allowed in associated functions
    }
    mod Self {}
    //~^ ERROR expected identifier, found keyword `Self`
}
fn trait_() {
    fn test(&mut self) {
    //~^ ERROR `self` parameter is only allowed in associated functions
    }
    trait Self {}
    //~^ ERROR expected identifier, found keyword `Self`
}
fn main() {}
 |