about summary refs log tree commit diff
path: root/tests/ui/regions/regions-bounded-method-type-parameters.stderr
blob: f1375404443d7e81da6007b435d00f7be94a5f00 (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 1 previous error