2020-11-22 06:57:11 -06:00
|
|
|
// run-pass
|
2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2020-11-22 06:57:11 -06:00
|
|
|
#![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();
|
|
|
|
}
|