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.

10 lines
111 B
Rust
Raw Normal View History

2021-10-03 15:03:34 +00:00
//@ check-pass
pub fn todo<T>() -> T {
const { todo!() }
}
fn main() {
let _: usize = const { 0 };
}