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
|
|
|
|
}
|
|
|
|
}
|
2019-07-30 00:11:58 +01:00
|
|
|
//~^ ERROR expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`,
|
2019-03-01 16:28:04 -08:00
|
|
|
|
|
|
|
fn main() {}
|