]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/late-bound-vars/simple.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[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 }