From 068e3832cd9c3c9ac43128e1056a8d8b05fe1406 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 23 Feb 2018 07:34:00 -0500 Subject: [PATCH] update test -- we now give a slightly different error --- src/test/compile-fail/issue-12997-2.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/compile-fail/issue-12997-2.rs b/src/test/compile-fail/issue-12997-2.rs index 85d91bb2db202..8d3df68577bab 100644 --- a/src/test/compile-fail/issue-12997-2.rs +++ b/src/test/compile-fail/issue-12997-2.rs @@ -15,6 +15,3 @@ #[bench] fn bar(x: isize) { } //~^ ERROR mismatched types -//~| expected type `for<'r> fn(&'r mut __test::test::Bencher)` -//~| found type `fn(isize) {bar}` -//~| expected mutable reference, found isize