]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-26217.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-26217.stderr
index c7601caacdca3fb4e56bc147a45e82e0a05fb767..73c772205c3dadb34e48d29c2bb9369afaf3d5a6 100644 (file)
@@ -5,6 +5,12 @@ LL | fn bar<'a>() {
    |        -- lifetime `'a` defined here
 LL |     foo::<&'a i32>();
    |     ^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
+   |
+note: due to current limitations in the borrow checker, this implies a `'static` lifetime
+  --> $DIR/issue-26217.rs:1:30
+   |
+LL | fn foo<T>() where for<'a> T: 'a {}
+   |                              ^^
 
 error: aborting due to previous error