fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: lifetime may not live long enough 2 --> $DIR/ex3-both-anon-regions-one-is-struct-2.rs:4:5 3 | 4LL | fn foo(mut x: Ref, y: &u32) { 5 | ----- - let's call the lifetime of this reference `'2` 6 | | 7 | has type `Ref<'_, '1>` 8LL | y = x.b; 9 | ^^^^^^^ assignment requires that `'1` must outlive `'2` 10 11error[E0384]: cannot assign to immutable argument `y` 12 --> $DIR/ex3-both-anon-regions-one-is-struct-2.rs:4:5 13 | 14LL | fn foo(mut x: Ref, y: &u32) { 15 | - help: make this binding mutable: `mut y` 16LL | y = x.b; 17 | ^^^^^^^ cannot assign to immutable argument 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0384`.