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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}