Files
rust/tests/ui/closures/binder/forbid_const_infer.rs

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

8 lines
240 B
Rust
Raw Normal View History

2025-01-08 21:05:35 +00:00
#![feature(generic_arg_infer, closure_lifetime_binder)]
fn main() {
let c = for<'a> |b: &'a [u32; _]| -> u32 { b[0] };
//~^ ERROR: implicit types in closure signatures are forbidden when `for<...>` is present
c(&[1_u32; 2]);
}