]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-pattern-typing-issue-19997.rs
Apply suggestions from code review
[rust.git] / src / test / ui / regions / regions-pattern-typing-issue-19997.rs
1 fn main() {
2     let a0 = 0;
3     let f = 1;
4     let mut a1 = &a0;
5     match (&a1,) {
6         (&ref b0,) => {
7             a1 = &f; //~ ERROR cannot assign to `a1` because it is borrowed
8             drop(b0);
9         }
10     }
11 }