2017-06-14 11:15:13 -05:00
|
|
|
enum X {
|
|
|
|
Entry,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2018-01-15 07:18:06 -06:00
|
|
|
X::Entry();
|
|
|
|
//~^ ERROR expected function, found enum variant `X::Entry` [E0618]
|
2017-06-14 11:15:13 -05:00
|
|
|
let x = 0i32;
|
2018-01-15 07:18:06 -06:00
|
|
|
x();
|
|
|
|
//~^ ERROR expected function, found `i32` [E0618]
|
2017-06-14 11:15:13 -05:00
|
|
|
}
|