summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/disallow-possibly-uninitialized.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/borrowck/disallow-possibly-uninitialized.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/borrowck/disallow-possibly-uninitialized.stderr')
-rw-r--r--tests/ui/borrowck/disallow-possibly-uninitialized.stderr43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/ui/borrowck/disallow-possibly-uninitialized.stderr b/tests/ui/borrowck/disallow-possibly-uninitialized.stderr
new file mode 100644
index 000000000..9a84c6fef
--- /dev/null
+++ b/tests/ui/borrowck/disallow-possibly-uninitialized.stderr
@@ -0,0 +1,43 @@
+error[E0381]: partially assigned binding `t` isn't fully initialized
+ --> $DIR/disallow-possibly-uninitialized.rs:6:5
+ |
+LL | let mut t: (u64, u64);
+ | ----- binding declared here but left uninitialized
+LL | t.0 = 1;
+ | ^^^^^^^ `t` partially assigned here but it isn't fully initialized
+ |
+ = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
+
+error[E0381]: partially assigned binding `t` isn't fully initialized
+ --> $DIR/disallow-possibly-uninitialized.rs:11:5
+ |
+LL | let mut t: (u64, u64);
+ | ----- binding declared here but left uninitialized
+LL | t.1 = 1;
+ | ^^^^^^^ `t` partially assigned here but it isn't fully initialized
+ |
+ = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
+
+error[E0381]: partially assigned binding `t` isn't fully initialized
+ --> $DIR/disallow-possibly-uninitialized.rs:16:5
+ |
+LL | let mut t: (u64, u64);
+ | ----- binding declared here but left uninitialized
+LL | t.0 = 1;
+ | ^^^^^^^ `t` partially assigned here but it isn't fully initialized
+ |
+ = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
+
+error[E0381]: partially assigned binding `t` isn't fully initialized
+ --> $DIR/disallow-possibly-uninitialized.rs:20:5
+ |
+LL | let mut t: (u64,);
+ | ----- binding declared here but left uninitialized
+LL | t.0 = 1;
+ | ^^^^^^^ `t` partially assigned here but it isn't fully initialized
+ |
+ = help: partial initialization isn't supported, fully initialize the binding with a default value and mutate it, or use `std::mem::MaybeUninit`
+
+error: aborting due to 4 previous errors
+
+For more information about this error, try `rustc --explain E0381`.