summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26217.stderr
blob: 73c772205c3dadb34e48d29c2bb9369afaf3d5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: lifetime may not live long enough
  --> $DIR/issue-26217.rs:4:5
   |
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