rust/tests/ui/error-codes/E0618.rs
2023-01-11 09:32:08 +00: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]
}