fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `line` does not live long enough 2 --> $DIR/regions-pattern-typing-issue-19552.rs:5:14 3 | 4LL | let line = String::new(); 5 | ---- binding `line` declared here 6LL | match [&*line] { 7 | ^^^^ borrowed value does not live long enough 8LL | [ word ] => { assert_static(word); } 9 | ------------------- argument requires that `line` is borrowed for `'static` 10LL | } 11LL | } 12 | - `line` dropped here while still borrowed 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0597`.