rust/tests/ui/consts/const-as-fn.rs

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

6 lines
91 B
Rust
Raw Normal View History

const FOO: usize = 0;
fn main() {
FOO(); //~ ERROR expected function, found `usize`
}