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