fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1note: external requirements 2 --> $DIR/propagate-from-trait-match.rs:32:36 3 | 4LL | establish_relationships(value, |value| { 5 | ^^^^^^^ 6 | 7 = note: defining type: supply::<'?1, T>::{closure#0} with closure args [ 8 i32, 9 extern "rust-call" fn((T,)), 10 (), 11 ] 12 = note: number of external vids: 2 13 = note: where T: '?1 14 15note: no external requirements 16 --> $DIR/propagate-from-trait-match.rs:28:1 17 | 18LL | / fn supply<'a, T>(value: T) 19LL | | where 20LL | | T: Trait<'a>, 21 | |_________________^ 22 | 23 = note: defining type: supply::<'?1, T> 24 25error[E0309]: the parameter type `T` may not live long enough 26 --> $DIR/propagate-from-trait-match.rs:43:9 27 | 28LL | require(value); 29 | ^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 30 | 31help: consider adding an explicit lifetime bound... 32 | 33LL | T: Trait<'a> + 'a, 34 | ++++ 35 36error: aborting due to previous error 37 38For more information about this error, try `rustc --explain E0309`.