diff options
Diffstat (limited to 'tests/ui/regions/regions-pattern-typing-issue-19997.stderr')
-rw-r--r-- | tests/ui/regions/regions-pattern-typing-issue-19997.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/regions/regions-pattern-typing-issue-19997.stderr b/tests/ui/regions/regions-pattern-typing-issue-19997.stderr new file mode 100644 index 000000000..ae60e3c0d --- /dev/null +++ b/tests/ui/regions/regions-pattern-typing-issue-19997.stderr @@ -0,0 +1,14 @@ +error[E0506]: cannot assign to `a1` because it is borrowed + --> $DIR/regions-pattern-typing-issue-19997.rs:7:13 + | +LL | match (&a1,) { + | --- borrow of `a1` occurs here +LL | (&ref b0,) => { +LL | a1 = &f; + | ^^^^^^^ assignment to borrowed `a1` occurs here +LL | drop(b0); + | -- borrow later used here + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0506`. |