Files
rust/tests/ui/const-generics/generic_const_exprs/const-generics-closure.rs

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

14 lines
320 B
Rust
Raw Normal View History

2025-04-09 23:22:23 +09:00
// Regression test for issue #127424
fn bar() -> impl Into<
[u8; {
//~^ ERROR mismatched types [E0308]
let _ = for<'a, 'b> |x: &'a &'a Vec<&'b u32>, b: bool| -> &'a Vec<&'b u32> { *x };
//~^ ERROR `for<...>` binders for closures are experimental [E0658]
}],
> {
[89]
}
fn main() {}