diff options
Diffstat (limited to 'src/test/compile-fail/fn-trait-formatting.rs')
| -rw-r--r-- | src/test/compile-fail/fn-trait-formatting.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/compile-fail/fn-trait-formatting.rs b/src/test/compile-fail/fn-trait-formatting.rs index e01a0412cef..6377550d3d2 100644 --- a/src/test/compile-fail/fn-trait-formatting.rs +++ b/src/test/compile-fail/fn-trait-formatting.rs @@ -16,18 +16,15 @@ fn main() { let _: () = (box |_: isize| {}) as Box<FnOnce(isize)>; //~^ ERROR mismatched types //~| expected type `()` - //~| found type `Box<std::ops::FnOnce(isize)>` - //~| expected (), found box + //~| found type `std::boxed::Box<std::ops::FnOnce(isize)>` let _: () = (box |_: isize, isize| {}) as Box<Fn(isize, isize)>; //~^ ERROR mismatched types //~| expected type `()` - //~| found type `Box<std::ops::Fn(isize, isize)>` - //~| expected (), found box + //~| found type `std::boxed::Box<std::ops::Fn(isize, isize)>` let _: () = (box || -> isize { unimplemented!() }) as Box<FnMut() -> isize>; //~^ ERROR mismatched types //~| expected type `()` - //~| found type `Box<std::ops::FnMut() -> isize>` - //~| expected (), found box + //~| found type `std::boxed::Box<std::ops::FnMut() -> isize>` needs_fn(1); //~^ ERROR : std::ops::Fn<(isize,)>` |
