summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inline-const/const-expr-inference.rs
blob: 0d5892a74d9565dc4d09bfcdf37797b64897d6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

#![feature(inline_const)]

pub fn todo<T>() -> T {
    const { todo!() }
}

fn main() {
    let _: usize = const { 0 };
}