fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0310]: the parameter type `A` may not live long enough 2 --> $DIR/normalization-infer.rs:11:12 3 | 4LL | let _: <(_,) as Tr>::Ty = a; 5 | ^^^^^^^^^^^^^^^^ ...so that the type `A` will meet its required lifetime bounds 6 | 7help: consider adding an explicit lifetime bound... 8 | 9LL | fn test1<A: 'static, B, C, D>(a: A, b: B, c: C) { 10 | +++++++++ 11 12error[E0310]: the parameter type `B` may not live long enough 13 --> $DIR/normalization-infer.rs:12:5 14 | 15LL | Some::<<(_,) as Tr>::Ty>(b); 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `B` will meet its required lifetime bounds 17 | 18help: consider adding an explicit lifetime bound... 19 | 20LL | fn test1<A, B: 'static, C, D>(a: A, b: B, c: C) { 21 | +++++++++ 22 23error[E0310]: the parameter type `C` may not live long enough 24 --> $DIR/normalization-infer.rs:13:11 25 | 26LL | || -> <(_,) as Tr>::Ty { c }; 27 | ^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds 28 | 29help: consider adding an explicit lifetime bound... 30 | 31LL | fn test1<A, B, C: 'static, D>(a: A, b: B, c: C) { 32 | +++++++++ 33 34error[E0310]: the parameter type `D` may not live long enough 35 --> $DIR/normalization-infer.rs:14:6 36 | 37LL | |d: <(_,) as Tr>::Ty| -> D { d }; 38 | ^ ...so that the type `D` will meet its required lifetime bounds 39 | 40help: consider adding an explicit lifetime bound... 41 | 42LL | fn test1<A, B, C, D: 'static>(a: A, b: B, c: C) { 43 | +++++++++ 44 45error[E0310]: the parameter type `A` may not live long enough 46 --> $DIR/normalization-infer.rs:28:12 47 | 48LL | let _: Alias<_, _> = (a, 0u8); 49 | ^^^^^^^^^^^ ...so that the type `A` will meet its required lifetime bounds 50 | 51help: consider adding an explicit lifetime bound... 52 | 53LL | fn test2<A: 'static, B, C>(a: A, b: B, c: C) { 54 | +++++++++ 55 56error[E0310]: the parameter type `B` may not live long enough 57 --> $DIR/normalization-infer.rs:29:5 58 | 59LL | Some::<Alias<_, _>>((b, 0u8)); 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `B` will meet its required lifetime bounds 61 | 62help: consider adding an explicit lifetime bound... 63 | 64LL | fn test2<A, B: 'static, C>(a: A, b: B, c: C) { 65 | +++++++++ 66 67error[E0310]: the parameter type `C` may not live long enough 68 --> $DIR/normalization-infer.rs:30:11 69 | 70LL | || -> Alias<_, _> { (c, 0u8) }; 71 | ^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds 72 | 73help: consider adding an explicit lifetime bound... 74 | 75LL | fn test2<A, B, C: 'static>(a: A, b: B, c: C) { 76 | +++++++++ 77 78error[E0716]: temporary value dropped while borrowed 79 --> $DIR/normalization-infer.rs:32:28 80 | 81LL | let _: Alias<_, _> = (&temp(), 0u8); 82 | ----------- ^^^^^^ creates a temporary value which is freed while still in use 83 | | 84 | type annotation requires that borrow lasts for `'static` 85... 86LL | } 87 | - temporary value is freed at the end of this statement 88 89error[E0716]: temporary value dropped while borrowed 90 --> $DIR/normalization-infer.rs:33:27 91 | 92LL | Some::<Alias<_, _>>((&temp(), 0u8)); 93 | --^^^^^^------ - temporary value is freed at the end of this statement 94 | | | 95 | | creates a temporary value which is freed while still in use 96 | this usage requires that borrow lasts for `'static` 97 98error: aborting due to 9 previous errors 99 100Some errors have detailed explanations: E0310, E0716. 101For more information about an error, try `rustc --explain E0310`.