blob: 8c8f0456f503e1c718cb5f4e030e77de24f2c32a (
plain)
1
2
3
4
5
6
7
|
#![feature(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]);
}
|