rust/src/test/ui/issues/issue-58856-2.rs
2020-02-24 00:59:38 +01:00

14 lines
285 B
Rust

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() {}