]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/late-bound-vars/in_closure.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / const-generics / late-bound-vars / in_closure.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 _ = || {
11         let _: [u8; inner::<'a>()];
12         let _ = [0; inner::<'a>()];
13     };
14 }
15
16 fn main() {
17     test();
18 }