]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/type-test-universe.stderr
Use Predicate ConstraintCategory when normalizing
[rust.git] / src / test / ui / nll / type-test-universe.stderr
index 242486c360a8090ea7f215d4448e6039250c8136..31e17d64b8caf4b41165d3da1e29aa3270bc3695 100644 (file)
@@ -11,6 +11,12 @@ LL | fn test2<'a>() {
    |          -- lifetime `'a` defined here
 LL |     outlives_forall::<Value<'a>>();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
+   |
+note: due to current limitations in the borrow checker, this implies a `'static` lifetime
+  --> $DIR/type-test-universe.rs:6:16
+   |
+LL |     for<'u> T: 'u,
+   |                ^^
 
 error: aborting due to 2 previous errors