]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-types/higher-ranked-projection.bad.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / associated-types / higher-ranked-projection.bad.stderr
index 65533f93c94135e27367e78b8dcfe4e031c0e197..239f4553938617c6838f277b5abfcbfbd4c31b94 100644 (file)
@@ -1,13 +1,13 @@
 error[E0308]: mismatched types
-  --> $DIR/higher-ranked-projection.rs:25:5
+  --> $DIR/higher-ranked-projection.rs:23:5
    |
 LL |     foo(());
-   |     ^^^ lifetime mismatch
+   |     ^^^^^^^ one type is more general than the other
    |
    = note: expected reference `&'a ()`
               found reference `&()`
 note: the lifetime requirement is introduced here
-  --> $DIR/higher-ranked-projection.rs:15:33
+  --> $DIR/higher-ranked-projection.rs:14:33
    |
 LL |     where for<'a> &'a T: Mirror<Image=U>
    |                                 ^^^^^^^