]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mismatched_types/unboxed-closures-vtable-mismatch.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / mismatched_types / unboxed-closures-vtable-mismatch.stderr
index e100520e561f579a25819bdf2d45476275506f40..995a12584547734a84abf2a68dec2b2aba38c496 100644 (file)
@@ -12,19 +12,5 @@ error[E0281]: type mismatch: `[closure@$DIR/unboxed-closures-vtable-mismatch.rs:
    |
    = note: required by `call_it`
 
-error[E0281]: type mismatch: `[closure@$DIR/unboxed-closures-vtable-mismatch.rs:22:23: 22:73]` implements the trait `std::ops::FnOnce<(usize, isize)>`, but the trait `std::ops::FnOnce<(isize, isize)>` is required
-  --> $DIR/unboxed-closures-vtable-mismatch.rs:25:13
-   |
-22 |     let f = to_fn_mut(|x: usize, y: isize| -> isize { (x as isize) + y });
-   |                       -------------------------------------------------- implements `std::ops::FnOnce<(usize, isize)>`
-...
-25 |     let z = call_it(3, f);
-   |             ^^^^^^^
-   |             |
-   |             requires `std::ops::FnOnce<(isize, isize)>`
-   |             expected isize, found usize
-   |
-   = note: required by `call_it`
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error