fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1note: external requirements 2 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:27:26 3 | 4LL | with_signature(a, b, |x, y| { 5 | ^^^^^^ 6 | 7 = note: defining type: no_region::<T>::{closure#0} with closure args [ 8 i32, 9 extern "rust-call" fn((std::cell::Cell<&'?1 ()>, T)), 10 (), 11 ] 12 = note: late-bound region is '?2 13 = note: number of external vids: 3 14 = note: where T: '?1 15 16note: no external requirements 17 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:26:1 18 | 19LL | fn no_region<'a, T>(a: Cell<&'a ()>, b: T) { 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21 | 22 = note: defining type: no_region::<T> 23 24error[E0309]: the parameter type `T` may not live long enough 25 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:32:9 26 | 27LL | require(&x, &y) 28 | ^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 29 | 30help: consider adding an explicit lifetime bound... 31 | 32LL | fn no_region<'a, T: 'a>(a: Cell<&'a ()>, b: T) { 33 | ++++ 34 35note: external requirements 36 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:42:26 37 | 38LL | with_signature(a, b, |x, y| { 39 | ^^^^^^ 40 | 41 = note: defining type: correct_region::<'?1, T>::{closure#0} with closure args [ 42 i32, 43 extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)), 44 (), 45 ] 46 = note: number of external vids: 3 47 = note: where T: '?2 48 49note: no external requirements 50 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:38:1 51 | 52LL | / fn correct_region<'a, T>(a: Cell<&'a ()>, b: T) 53LL | | where 54LL | | T: 'a, 55 | |__________^ 56 | 57 = note: defining type: correct_region::<'?1, T> 58 59note: external requirements 60 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:63:26 61 | 62LL | with_signature(a, b, |x, y| { 63 | ^^^^^^ 64 | 65 = note: defining type: wrong_region::<'?1, T>::{closure#0} with closure args [ 66 i32, 67 extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)), 68 (), 69 ] 70 = note: late-bound region is '?3 71 = note: number of external vids: 4 72 = note: where T: '?2 73 74note: no external requirements 75 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:59:1 76 | 77LL | / fn wrong_region<'a, 'b, T>(a: Cell<&'a ()>, b: T) 78LL | | where 79LL | | T: 'b, 80 | |__________^ 81 | 82 = note: defining type: wrong_region::<'?1, T> 83 84error[E0309]: the parameter type `T` may not live long enough 85 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:65:9 86 | 87LL | require(&x, &y) 88 | ^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds 89 | 90help: consider adding an explicit lifetime bound... 91 | 92LL | T: 'b + 'a, 93 | ++++ 94 95note: external requirements 96 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:76:26 97 | 98LL | with_signature(a, b, |x, y| { 99 | ^^^^^^ 100 | 101 = note: defining type: outlives_region::<'?1, '?2, T>::{closure#0} with closure args [ 102 i32, 103 extern "rust-call" fn((std::cell::Cell<&'?3 ()>, T)), 104 (), 105 ] 106 = note: number of external vids: 4 107 = note: where T: '?3 108 109note: no external requirements 110 --> $DIR/ty-param-closure-outlives-from-where-clause.rs:71:1 111 | 112LL | / fn outlives_region<'a, 'b, T>(a: Cell<&'a ()>, b: T) 113LL | | where 114LL | | T: 'b, 115LL | | 'b: 'a, 116 | |___________^ 117 | 118 = note: defining type: outlives_region::<'?1, '?2, T> 119 120error: aborting due to 2 previous errors 121 122For more information about this error, try `rustc --explain E0309`.