fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
523 B14 linesraw
1error[E0597]: `line` does not live long enough
2  --> $DIR/regions-pattern-typing-issue-19552.rs:5:14
3   |
4LL |     match [&*line] {
5   |              ^^^^ borrowed value does not live long enough
6LL |         [ word ] => { assert_static(word); }
7   |                       ------------------- argument requires that `line` is borrowed for `'static`
8LL |     }
9LL | }
10   | - `line` dropped here while still borrowed
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0597`.