mirror of https://github.com/rust-lang/rust
11 lines
331 B
Plaintext
11 lines
331 B
Plaintext
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
|
|
|