fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `a` does not live long enough 2 --> $DIR/issue-55511.rs:13:28 3 | 4LL | let a = 22; 5 | - binding `a` declared here 6LL | let b = Some(Cell::new(&a)); 7 | ^^ borrowed value does not live long enough 8... 9LL | <() as Foo<'static>>::C => { } 10 | ----------------------- type annotation requires that `a` is borrowed for `'static` 11... 12LL | } 13 | - `a` dropped here while still borrowed 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0597`.