fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `a` does not live long enough 2 --> $DIR/method-ufcs-1.rs:30:7 3 | 4LL | let a = 22; 5 | - binding `a` declared here 6... 7LL | x(&a, b, c); 8 | --^^------- 9 | | | 10 | | borrowed value does not live long enough 11 | argument requires that `a` is borrowed for `'static` 12LL | } 13 | - `a` dropped here while still borrowed 14 15error[E0597]: `a` does not live long enough 16 --> $DIR/method-ufcs-1.rs:37:36 17 | 18LL | fn annot_reference_named_lifetime<'a>(_d: &'a u32) { 19 | -- lifetime `'a` defined here 20LL | let a = 22; 21 | - binding `a` declared here 22... 23LL | <&'a u32 as Bazoom<_>>::method(&a, b, c); 24 | -------------------------------^^------- 25 | | | 26 | | borrowed value does not live long enough 27 | argument requires that `a` is borrowed for `'a` 28LL | } 29 | - `a` dropped here while still borrowed 30 31error[E0597]: `a` does not live long enough 32 --> $DIR/method-ufcs-1.rs:51:41 33 | 34LL | fn annot_reference_named_lifetime_in_closure<'a>(_: &'a u32) { 35 | -- lifetime `'a` defined here 36... 37LL | let _closure = || { 38 | -- value captured here 39LL | let c = 66; 40LL | <&'a u32 as Bazoom<_>>::method(&a, b, c); 41 | --------------------------------^------- 42 | | | 43 | | borrowed value does not live long enough 44 | argument requires that `a` is borrowed for `'a` 45LL | }; 46LL | } 47 | - `a` dropped here while still borrowed 48 49error: aborting due to 3 previous errors 50 51For more information about this error, try `rustc --explain E0597`.