]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55511.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-55511.stderr
1 error[E0597]: `a` does not live long enough
2   --> $DIR/issue-55511.rs:13:28
3    |
4 LL |     let b = Some(Cell::new(&a));
5    |                            ^^ borrowed value does not live long enough
6 ...
7 LL |         <() as Foo<'static>>::C => { }
8    |         ----------------------- type annotation requires that `a` is borrowed for `'static`
9 ...
10 LL | }
11    | - `a` 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`.