rust/tests/ui/const-generics/late-bound-vars/in_closure.rs
2023-01-11 09:32:08 +00:00

19 lines
279 B
Rust

// run-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
const fn inner<'a>() -> usize where &'a (): Sized {
3
}
fn test<'a>() {
let _ = || {
let _: [u8; inner::<'a>()];
let _ = [0; inner::<'a>()];
};
}
fn main() {
test();
}