]> git.proxmox.com Git - rustc.git/blame - tests/ui/match/issue-74050-end-span.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / ui / match / issue-74050-end-span.stderr
CommitLineData
f035d41b
XL
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) => {
9ffffee4 7 | --- binding `arg` declared here
f035d41b 8LL | match arg.to_str() {
add651ee 9 | ^^^ borrowed value does not live long enough
f035d41b
XL
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`.