]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-23041.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-23041.rs
index 1a9bb4c29f3e0183ad2f0a6a0cf45e5dd44f0214..1be082ba9bbbad454982a42a82d8ce3e7c4b6361 100644 (file)
@@ -14,4 +14,6 @@ fn main()
     fn bar(x:i32) ->i32 { 3*x };
     let b:Box<Any> = Box::new(bar as fn(_)->_);
     b.downcast_ref::<fn(_)->_>(); //~ ERROR E0282
+                                  //~| NOTE cannot infer type for `_`
+                                  //~| NOTE type annotations or generic parameter binding required
 }