]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/late-bound-vars/simple.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / const-generics / late-bound-vars / simple.rs
1 // run-pass
2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
4
5 const fn inner<'a>() -> usize where &'a (): Sized {
6     3
7 }
8
9 fn test<'a>() {
10     let _: [u8; inner::<'a>()];
11     let _ = [0; inner::<'a>()];
12 }
13
14 fn main() {
15     test();
16 }