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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
137 B
Rust
Raw Normal View History

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