rust/tests/ui/consts/const-as-fn.rs
2023-01-11 09:32:08 +00:00

6 lines
91 B
Rust

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