rust/tests/ui/diagnostic_namespace/do_not_recommend/with_lifetime.next.stderr

11 lines
297 B
Plaintext

error: lifetime may not live long enough
--> $DIR/with_lifetime.rs:18:5
|
LL | fn foo<'a>(a: &'a ()) {
| -- lifetime `'a` defined here
LL | needs_root::<&'a ()>();
| ^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
error: aborting due to 1 previous error