summary refs log tree commit diff
path: root/src/test/ui/issues/issue-58856-2.rs
blob: 745f0300bd5ad27eeceaa536670588108cc6f743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct Empty;

trait Howness {}

impl Howness for () {
    fn how_are_you(&self -> Empty {
    //~^ ERROR expected one of `)` or `,`, found `->`
    //~| ERROR method `how_are_you` is not a member of trait `Howness`
        Empty
    }
}
//~^ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`,

fn main() {}