1 error[E0597]: `a` does not live long enough
2 --> $DIR/method-ufcs-1.rs:30:7
7 | | borrowed value does not live long enough
8 | argument requires that `a` is borrowed for `'static`
10 | - `a` dropped here while still borrowed
12 error[E0597]: `a` does not live long enough
13 --> $DIR/method-ufcs-1.rs:37:36
15 LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) {
16 | -- lifetime `'a` defined here
18 LL | <&'a u32 as Bazoom<_>>::method(&a, b, c);
19 | -------------------------------^^-------
21 | | borrowed value does not live long enough
22 | argument requires that `a` is borrowed for `'a`
24 | - `a` dropped here while still borrowed
26 error[E0597]: `a` does not live long enough
27 --> $DIR/method-ufcs-1.rs:51:41
29 LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) {
30 | -- lifetime `'a` defined here
32 LL | let _closure = || {
33 | -- value captured here
35 LL | <&'a u32 as Bazoom<_>>::method(&a, b, c);
36 | --------------------------------^-------
38 | | borrowed value does not live long enough
39 | argument requires that `a` is borrowed for `'a`
42 | - `a` dropped here while still borrowed
44 error: aborting due to 3 previous errors
46 For more information about this error, try `rustc --explain E0597`.