summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-26217.stderr
blob: c7601caacdca3fb4e56bc147a45e82e0a05fb767 (plain)
1
2
3
4
5
6
7
8
9
10
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`

error: aborting due to previous error