mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
324 B
Plaintext
12 lines
324 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/supertrait-lifetime-bound.rs:10:5
|
|
|
|
|
LL | fn test2<'a>() {
|
|
| -- lifetime `'a` defined here
|
|
...
|
|
LL | test1::<dyn Bar<&'a u32>, _>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|