mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
12 lines
206 B
Rust
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]
|
|
}
|