blob: 4fa5d54431c60eedfc76ccf4de7239ef57513a90 [file] [log] [blame]
fn bar<F>(blk: F) where F: FnOnce() + 'static {
}
fn foo(x: &()) {
bar(|| {
//~^ ERROR explicit lifetime required in the type of `x` [E0621]
let _ = x;
})
}
fn main() {
}