summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-109991.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/ui/suggestions/issue-109991.stderr
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/suggestions/issue-109991.stderr')
-rw-r--r--tests/ui/suggestions/issue-109991.stderr72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/ui/suggestions/issue-109991.stderr b/tests/ui/suggestions/issue-109991.stderr
new file mode 100644
index 000000000..bd21e4de6
--- /dev/null
+++ b/tests/ui/suggestions/issue-109991.stderr
@@ -0,0 +1,72 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:11:11
+ |
+LL | let c: usize;
+ | ----- expected due to this type
+LL |
+LL | (c) = (&123);
+ | ^^^^^^ expected `usize`, found `&{integer}`
+ |
+help: consider removing the borrow
+ |
+LL - (c) = (&123);
+LL + (c) = (123);
+ |
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:12:9
+ |
+LL | let b: usize;
+ | ----- expected due to this type
+...
+LL | (a, b) = (123, &mut 123);
+ | ^ expected `usize`, found `&mut {integer}`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:15:6
+ |
+LL | let x: String;
+ | ------ expected due to this type
+LL | (x,) = (1,);
+ | ^ expected `String`, found integer
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:18:6
+ |
+LL | let x: i32;
+ | --- expected due to this type
+LL | [x] = [&1];
+ | ^ expected `i32`, found `&{integer}`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:21:6
+ |
+LL | let x: &i32;
+ | ---- expected due to this type
+LL | [x] = [1];
+ | ^ expected `&i32`, found integer
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:24:9
+ |
+LL | let b: usize;
+ | ----- expected due to this type
+...
+LL | (a, b) = x;
+ | ^ expected `usize`, found `&mut {integer}`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109991.rs:26:31
+ |
+LL | S { a, b } = S { a: 1, b: &mut 2 };
+ | ^^^^^^ expected `usize`, found `&mut {integer}`
+ |
+help: consider removing the borrow
+ |
+LL - S { a, b } = S { a: 1, b: &mut 2 };
+LL + S { a, b } = S { a: 1, b: 2 };
+ |
+
+error: aborting due to 7 previous errors
+
+For more information about this error, try `rustc --explain E0308`.