From 7f8ca53669e71481201892e37ec57939e5f1ec85 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 17 Oct 2014 09:12:10 -0400 Subject: [PATCH] Test where the old infrastructure failed to detect the (applicable) impl of `FnMut` for some reason. --- src/test/compile-fail/issue-17033.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() {}