rust/tests/ui/inline-const/const-expr-inference.rs
2024-04-24 13:12:33 +01:00

10 lines
111 B
Rust

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