rust/src/test/ui/const-generics/late-bound-vars/simple.rs

17 lines
242 B
Rust
Raw Normal View History

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