rust/tests/ui/inline-const/const-expr-inference.rs
2023-01-11 09:32:08 +00:00

12 lines
137 B
Rust

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