]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-68550.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / nll / issue-68550.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/issue-68550.rs:12:20
3    |
4 LL | fn run<'a, A>(x: A)
5    |        -- lifetime `'a` defined here
6 ...
7 LL |     let _: &'a A = &x;
8    |            -----   ^^ borrowed value does not live long enough
9    |            |
10    |            type annotation requires that `x` is borrowed for `'a`
11 LL | }
12    | - `x` 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`.