diff options
| author | bors <bors@rust-lang.org> | 2019-05-17 13:01:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-05-17 13:01:23 +0000 |
| commit | b982867a7349f84c17317599b59aeb5a7d8a83be (patch) | |
| tree | 1e74728d4b88f335cb3c21633fa7ce5cd3282637 /src/test/ui/pattern | |
| parent | 39401465da4ce27aeeb2c2a26133ac35c63aa515 (diff) | |
| parent | be5fe051a843cfbbc1ba4fcd347b641417181b8f (diff) | |
| download | rust-b982867a7349f84c17317599b59aeb5a7d8a83be.tar.gz rust-b982867a7349f84c17317599b59aeb5a7d8a83be.zip | |
Auto merge of #60171 - matthewjasper:full-nll-compare-mode, r=pnkfelix
Use -Zborrowck=mir for NLL compare mode closes #56993 r? @pnkfelix
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/pattern-bindings-after-at.nll.stderr | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/pattern/pattern-bindings-after-at.nll.stderr b/src/test/ui/pattern/pattern-bindings-after-at.nll.stderr new file mode 100644 index 00000000000..35ee7877f2f --- /dev/null +++ b/src/test/ui/pattern/pattern-bindings-after-at.nll.stderr @@ -0,0 +1,22 @@ +error[E0303]: pattern bindings are not allowed after an `@` + --> $DIR/pattern-bindings-after-at.rs:8:31 + | +LL | ref mut z @ &mut Some(ref a) => { + | ^^^^^ not allowed after `@` + +error[E0502]: cannot borrow `_` as immutable because it is also borrowed as mutable + --> $DIR/pattern-bindings-after-at.rs:8:31 + | +LL | ref mut z @ &mut Some(ref a) => { + | ----------------------^^^^^- + | | | + | | immutable borrow occurs here + | mutable borrow occurs here +... +LL | **z = None; + | ---------- mutable borrow later used here + +error: aborting due to 2 previous errors + +Some errors have detailed explanations: E0303, E0502. +For more information about an error, try `rustc --explain E0303`. |
