Skip to content

Commit 7f8ca53

Browse files
committed
Test where the old infrastructure failed to detect the (applicable) impl of FnMut for
some reason.
1 parent df714cf commit 7f8ca53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/compile-fail/issue-17033.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(overloaded_calls)]
12+
1113
fn f<'r>(p: &'r mut fn(p: &mut ())) {
12-
p(()) //~ ERROR expected function, found `&'r mut fn(&mut ())`
14+
p(()) //~ ERROR mismatched types: expected `&mut ()`, found `()`
1315
}
1416

1517
fn main() {}

0 commit comments

Comments
 (0)