summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-bounded-method-type-parameters.stderr
blob: b6d7b8aac5f19f927e399aa28aaec81af9eb87b6 (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/regions-bounded-method-type-parameters.rs:12:9
   |
LL | fn caller<'a>(x: &isize) {
   |           -- lifetime `'a` defined here
LL |     Foo.some_method::<&'a isize>();
   |         ^^^^^^^^^^^ requires that `'a` must outlive `'static`

error: aborting due to previous error