fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime may not live long enough 2 --> $DIR/normalization-default.rs:8:22 3 | 4LL | fn test_tuple(x: &(), y: &()) { 5 | - let's call the lifetime of this reference `'1` 6LL | MyTuple::<_>((), x); 7 | ^ this usage requires that `'1` must outlive `'static` 8 9error: lifetime may not live long enough 10 --> $DIR/normalization-default.rs:10:12 11 | 12LL | fn test_tuple(x: &(), y: &()) { 13 | - let's call the lifetime of this reference `'2` 14... 15LL | let _: MyTuple::<_> = MyTuple((), y); 16 | ^^^^^^^^^^^^ type annotation requires that `'2` must outlive `'static` 17 18error: lifetime may not live long enough 19 --> $DIR/normalization-default.rs:16:26 20 | 21LL | fn test_struct(x: &(), y: &()) { 22 | - let's call the lifetime of this reference `'1` 23LL | MyStruct::<_> { val: ((), x) }; 24 | ^^^^^^^ this usage requires that `'1` must outlive `'static` 25 26error: lifetime may not live long enough 27 --> $DIR/normalization-default.rs:18:12 28 | 29LL | fn test_struct(x: &(), y: &()) { 30 | - let's call the lifetime of this reference `'2` 31... 32LL | let _: MyStruct::<_> = MyStruct { val: ((), y) }; 33 | ^^^^^^^^^^^^^ type annotation requires that `'2` must outlive `'static` 34 35error: aborting due to 4 previous errors 36