rust/tests/ui/error-codes/E0618.rs

12 lines
206 B
Rust
Raw Normal View History

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