]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-11844.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / issues / issue-11844.stderr
index 683ad48ff52c0b4249eefe376f2474f353961678..9d7470e7af9aa9c557edc551e87a9647494c9fc7 100644 (file)
@@ -2,12 +2,12 @@ error[E0308]: mismatched types
   --> $DIR/issue-11844.rs:6:9
    |
 LL |     match a {
-   |           - this match expression has type `std::option::Option<std::boxed::Box<{integer}>>`
-LL |         Ok(a) => //~ ERROR: mismatched types
-   |         ^^^^^ expected enum `std::option::Option`, found enum `std::result::Result`
+   |           - this expression has type `Option<Box<{integer}>>`
+LL |         Ok(a) =>
+   |         ^^^^^ expected enum `Option`, found enum `Result`
    |
-   = note: expected type `std::option::Option<std::boxed::Box<{integer}>>`
-              found type `std::result::Result<_, _>`
+   = note: expected enum `Option<Box<{integer}>>`
+              found enum `Result<_, _>`
 
 error: aborting due to previous error