summaryrefslogtreecommitdiffstats
path: root/test cases/rust/10 language stds/2018.rs
blob: 4009154635e1b03fca4de760406940aa74633e2f (plain)
1
2
3
4
5
6
7
8
9
const fn foo(x: i32) -> i32 {
    return x + 1;
}

const VALUE: i32 = foo(-1);

pub fn main() {
    std::process::exit(VALUE);
}