summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-58856-2.rs
blob: 9356d57b0e5f42aa3e25135aa99996a808e5de53 (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 non-item in item list

fn main() {}