Skip to content

Commit

Permalink
Test where the old infrastructure failed to detect the (applicable) i…
Browse files Browse the repository at this point in the history
…mpl of `FnMut` for

some reason.
  • Loading branch information
nikomatsakis committed Oct 21, 2014
1 parent df714cf commit 7f8ca53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/compile-fail/issue-17033.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

0 comments on commit 7f8ca53

Please sign in to comment.