]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-74050-end-span.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / issue-74050-end-span.stderr
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) => {
7 LL |             match arg.to_str() {
8    |                   ^^^^^^^^^^^^ borrowed value does not live long enough
9 ...
10 LL |         }
11    |         - `arg` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.