2023-05-05 15:42:51 -05:00
|
|
|
//@ known-bug: unknown
|
2023-09-02 17:53:59 -05:00
|
|
|
// see comment on `tests/ui/const-generics/late-bound-vars/simple.rs`
|
2023-05-05 15:42:51 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2020-11-22 06:57:11 -06:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
2023-08-23 14:13:55 -05:00
|
|
|
const fn inner<'a>() -> usize
|
|
|
|
where
|
|
|
|
&'a (): Sized,
|
|
|
|
{
|
2020-11-22 06:57:11 -06:00
|
|
|
3
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test<'a>() {
|
|
|
|
let _ = || {
|
|
|
|
let _: [u8; inner::<'a>()];
|
|
|
|
let _ = [0; inner::<'a>()];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test();
|
|
|
|
}
|