]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/regions-infer-borrow-scope-within-loop.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / regions-infer-borrow-scope-within-loop.stderr
1 error[E0597]: `*x` does not live long enough
2   --> $DIR/regions-infer-borrow-scope-within-loop.rs:13:20
3    |
4 LL |         y = borrow(&*x);
5    |                    ^^^ borrowed value does not live long enough
6 ...
7 LL |     }
8    |     - `*x` dropped here while still borrowed
9 LL |     assert!(*y != 0);
10    |             -- borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.