2019-03-01 21:47:06 -08:00
|
|
|
struct Empty;
|
|
|
|
|
2019-03-01 16:28:04 -08:00
|
|
|
trait Howness {}
|
2019-03-01 21:47:06 -08:00
|
|
|
|
2019-03-01 16:28:04 -08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2020-02-22 08:16:39 +01:00
|
|
|
//~^ ERROR non-item in item list
|
2019-03-01 16:28:04 -08:00
|
|
|
|
|
|
|
fn main() {}
|