]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/match-ergonomics.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / suggestions / match-ergonomics.stderr
index b7497be6ceb3693b4f42c485035336a6b55a82c3..abdb754acc5fac48225087b160fa722778c5133d 100644 (file)
@@ -4,11 +4,11 @@ error[E0308]: mismatched types
 LL |         [&v] => {},
    |          ^^
    |          |
-   |          expected i32, found reference
+   |          expected `i32`, found reference
    |          help: you can probably remove the explicit borrow: `v`
    |
-   = note: expected type `i32`
-              found type `&_`
+   = note:   expected type `i32`
+           found reference `&_`
 
 error[E0529]: expected an array or slice, found `std::vec::Vec<i32>`
   --> $DIR/match-ergonomics.rs:8:9
@@ -28,11 +28,11 @@ error[E0308]: mismatched types
 LL |         &v => {},
    |         ^^
    |         |
-   |         expected i32, found reference
+   |         expected `i32`, found reference
    |         help: you can probably remove the explicit borrow: `v`
    |
-   = note: expected type `i32`
-              found type `&_`
+   = note:   expected type `i32`
+           found reference `&_`
 
 error[E0308]: mismatched types
   --> $DIR/match-ergonomics.rs:40:13
@@ -40,11 +40,11 @@ error[E0308]: mismatched types
 LL |     if let [&v] = &x[..] {}
    |             ^^
    |             |
-   |             expected i32, found reference
+   |             expected `i32`, found reference
    |             help: you can probably remove the explicit borrow: `v`
    |
-   = note: expected type `i32`
-              found type `&_`
+   = note:   expected type `i32`
+           found reference `&_`
 
 error: aborting due to 5 previous errors