fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
542 B14 linesraw
1error: lifetime may not live long enough
2  --> $DIR/unique-borrows-are-invariant-1.rs:6:31
3   |
4LL | fn extend_lifetime<'a, 'b>(x: &mut (&'a str,), y: &'b str) {
5   |                    --  -- lifetime `'b` defined here
6   |                    |
7   |                    lifetime `'a` defined here
8LL |     let mut closure = |input| x.0 = input;
9   |                               ^^^^^^^^^^^ assignment requires that `'b` must outlive `'a`
10   |
11   = help: consider adding the following bound: `'b: 'a`
12
13error: aborting due to previous error
14