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

12 lines
137 B
Rust
Raw Normal View History

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