]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/unboxed-closure-sugar-not-used-on-fn.rs
Imported Upstream version 1.0.0~beta.3
[rustc.git] / src / test / compile-fail / unboxed-closure-sugar-not-used-on-fn.rs
index 55156e28cd703e3e33b75ebf58028076a9e01fdd..5a821ef1231cc8cedc39ffb7c6fc3d8072008ab3 100644 (file)
@@ -11,7 +11,7 @@
 
 // Test that the `Fn` traits require `()` form without a feature gate.
 
-fn bar1(x: &Fn<()>) {
+fn bar1(x: &Fn<(), Output=()>) {
     //~^ ERROR angle-bracket notation is not stable when used with the `Fn` family
 }