]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/issue-74050-end-span.stderr
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors
[rust.git] / tests / 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    |              --- binding `arg` declared here
8 LL |             match arg.to_str() {
9    |                   ^^^^^^^^^^^^ borrowed value does not live long enough
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`.