rust/src/test/ui/error-codes/E0618.rs
2018-12-25 21:08:33 -07:00

12 lines
206 B
Rust

enum X {
Entry,
}
fn main() {
X::Entry();
//~^ ERROR expected function, found enum variant `X::Entry` [E0618]
let x = 0i32;
x();
//~^ ERROR expected function, found `i32` [E0618]
}