rust/tests/ui/const-generics/late-bound-vars/in_closure.rs

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

24 lines
366 B
Rust
Raw Normal View History

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
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
2023-08-23 14:13:55 -05: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();
}