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