rust/tests/ui/inline-const/const-expr-inference.rs

10 lines
111 B
Rust

//@ check-pass
pub fn todo<T>() -> T {
const { todo!() }
}
fn main() {
let _: usize = const { 0 };
}