]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-58856-2.rs
Rollup merge of #90995 - the8472:hash-portability, r=dtolnay
[rust.git] / src / test / ui / parser / issues / issue-58856-2.rs
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 }
12 //~^ ERROR non-item in item list
13
14 fn main() {}