mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
first part of issue-40000.rs is now passing
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
#![feature(closure_to_fn_coercion)]
|
||||
|
||||
fn main() {
|
||||
let bar: fn(&mut u32) = |_| {}; //~ ERROR mismatched types
|
||||
//~| expected concrete lifetime, found bound lifetime parameter
|
||||
let bar: fn(&mut u32) = |_| {};
|
||||
|
||||
fn foo(x: Box<Fn(&i32)>) {}
|
||||
let bar = Box::new(|x: &i32| {}) as Box<Fn(_)>;
|
||||
|
||||
Reference in New Issue
Block a user