fork/rust

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

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

master
540 B16 linesraw
1error[E0597]: `arg` does not live long enough
2  --> $DIR/issue-74050-end-span.rs:5:19
3   |
4LL |     let _arg = match args.next() {
5   |         ---- borrow later stored here
6LL |         Some(arg) => {
7   |              --- binding `arg` declared here
8LL |             match arg.to_str() {
9   |                   ^^^ borrowed value does not live long enough
10...
11LL |         }
12   |         - `arg` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.