]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-58856-2.rs
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / 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 expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`,
13
14 fn main() {}