]> git.lizzy.rs Git - rust.git/blob - tests/ui/inline-const/const-expr-inference.rs
Rollup merge of #107204 - euclio:assoc-const-suggestion, r=petrochenkov
[rust.git] / tests / ui / inline-const / const-expr-inference.rs
1 // check-pass
2
3 #![feature(inline_const)]
4
5 pub fn todo<T>() -> T {
6     const { todo!() }
7 }
8
9 fn main() {
10     let _: usize = const { 0 };
11 }