Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
365 B
Rust
Raw Normal View History

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