]>
Commit | Line | Data |
---|---|---|
9fa01778 XL |
1 | struct Empty; |
2 | ||
3 | trait Howness {} | |
4 | ||
5 | impl Howness for () { | |
6 | fn how_are_you(&self -> Empty { | |
7 | //~^ ERROR expected one of `)` or `,`, found `->` | |
8 | //~| ERROR method `how_are_you` is not a member of trait `Howness` | |
9 | Empty | |
10 | } | |
11 | } | |
74b04a01 | 12 | //~^ ERROR non-item in item list |
9fa01778 XL |
13 | |
14 | fn main() {} |