]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/destructure-trait-ref.stderr
check_pat_ref: use pattern_cause
[rust.git] / src / test / ui / destructure-trait-ref.stderr
index f99bf2ffdc9d45dc85d7915d7776762ed0a5e6f2..1382cf643a17331cd7c18d2a7f8f619da16b3a2c 100644 (file)
@@ -20,7 +20,7 @@ error[E0308]: mismatched types
   --> $DIR/destructure-trait-ref.rs:32:10
    |
 LL |     let &&x = &1isize as &dyn T;
-   |          ^^
+   |          ^^   ----------------- this expression has type `&dyn T`
    |          |
    |          expected trait object `dyn T`, found reference
    |          help: you can probably remove the explicit borrow: `x`
@@ -32,7 +32,7 @@ error[E0308]: mismatched types
   --> $DIR/destructure-trait-ref.rs:36:11
    |
 LL |     let &&&x = &(&1isize as &dyn T);
-   |           ^^
+   |           ^^   -------------------- this expression has type `&&dyn T`
    |           |
    |           expected trait object `dyn T`, found reference
    |           help: you can probably remove the explicit borrow: `x`