mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
19 lines
654 B
Plaintext
19 lines
654 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/unsatisfied-outlives-bounds.rs:10:14
|
|
|
|
|
LL | fn parametrized0<'any>() {
|
|
| ---- lifetime `'any` defined here
|
|
LL | let () = C::<'static, &'any ()>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`
|
|
|
|
error: lifetime may not live long enough
|
|
--> $DIR/unsatisfied-outlives-bounds.rs:14:14
|
|
|
|
|
LL | fn parametrized1<'any>() {
|
|
| ---- lifetime `'any` defined here
|
|
LL | let () = K::<'static, 'any>;
|
|
| ^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|