fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `l` does not live long enough 2 --> $DIR/promoted-bounds.rs:19:17 3 | 4LL | let ptr = { 5 | --- borrow later stored here 6LL | let l = 3; 7 | - binding `l` declared here 8LL | let b = &l; 9 | ^^ borrowed value does not live long enough 10... 11LL | }; 12 | - `l` dropped here while still borrowed 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0597`.