summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-as-fn.rs
blob: 388f907f8d2c36acbef578fe7b0ba983c596f2f1 (plain)
1
2
3
4
5
const FOO: usize = 0;

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