summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr')
-rw-r--r--src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr b/src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr
deleted file mode 100644
index 778204757..000000000
--- a/src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr
+++ /dev/null
@@ -1,65 +0,0 @@
-error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
- --> $DIR/mut-borrow-of-mut-ref.rs:7:7
- |
-LL | h(&mut b);
- | ^^^^^^ cannot borrow as mutable
- |
-note: the binding is already a mutable borrow
- --> $DIR/mut-borrow-of-mut-ref.rs:4:13
- |
-LL | pub fn f(b: &mut i32) {
- | ^^^^^^^^
-help: try removing `&mut` here
- |
-LL - h(&mut b);
-LL + h(b);
- |
-
-error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
- --> $DIR/mut-borrow-of-mut-ref.rs:11:12
- |
-LL | g(&mut &mut b);
- | ^^^^^^ cannot borrow as mutable
- |
-note: the binding is already a mutable borrow
- --> $DIR/mut-borrow-of-mut-ref.rs:4:13
- |
-LL | pub fn f(b: &mut i32) {
- | ^^^^^^^^
-help: try removing `&mut` here
- |
-LL - g(&mut &mut b);
-LL + g(&mut b);
- |
-
-error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
- --> $DIR/mut-borrow-of-mut-ref.rs:18:12
- |
-LL | h(&mut &mut b);
- | ^^^^^^ cannot borrow as mutable
- |
-note: the binding is already a mutable borrow
- --> $DIR/mut-borrow-of-mut-ref.rs:17:13
- |
-LL | pub fn g(b: &mut i32) {
- | ^^^^^^^^
-help: try removing `&mut` here
- |
-LL - h(&mut &mut b);
-LL + h(&mut b);
- |
-
-error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
- --> $DIR/mut-borrow-of-mut-ref.rs:35:5
- |
-LL | f.bar();
- | ^^^^^^^ cannot borrow as mutable
- |
-help: consider making the binding mutable
- |
-LL | pub fn baz(mut f: &mut String) {
- | +++
-
-error: aborting due to 4 previous errors
-
-For more information about this error, try `rustc --explain E0596`.