about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-10-17 09:12:10 -0400
committerNiko Matsakis <niko@alum.mit.edu>2014-10-21 12:32:36 -0400
commit7f8ca53669e71481201892e37ec57939e5f1ec85 (patch)
tree365e7cec893b4fc574afa30ff1400d9c641a6539
parentdf714cfda728e201dd6b2227caa425bca3e048c7 (diff)
Test where the old infrastructure failed to detect the (applicable) impl of `FnMut` for
some reason.
-rw-r--r--src/test/compile-fail/issue-17033.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/issue-17033.rs b/src/test/compile-fail/issue-17033.rs
index 35adb29c949..7590546d40a 100644
--- a/src/test/compile-fail/issue-17033.rs
+++ b/src/test/compile-fail/issue-17033.rs
@@ -8,8 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![feature(overloaded_calls)]
+
 fn f<'r>(p: &'r mut fn(p: &mut ())) {
-    p(()) //~ ERROR expected function, found `&'r mut fn(&mut ())`
+    p(()) //~ ERROR mismatched types: expected `&mut ()`, found `()`
 }
 
 fn main() {}