summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-67945-1.full.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/issues/issue-67945-1.full.stderr')
-rw-r--r--tests/ui/const-generics/issues/issue-67945-1.full.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/const-generics/issues/issue-67945-1.full.stderr b/tests/ui/const-generics/issues/issue-67945-1.full.stderr
new file mode 100644
index 000000000..8e18fcdff
--- /dev/null
+++ b/tests/ui/const-generics/issues/issue-67945-1.full.stderr
@@ -0,0 +1,17 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-67945-1.rs:10:20
+ |
+LL | struct Bug<S> {
+ | - this type parameter
+...
+LL | let x: S = MaybeUninit::uninit();
+ | - ^^^^^^^^^^^^^^^^^^^^^ expected type parameter `S`, found union `MaybeUninit`
+ | |
+ | expected due to this
+ |
+ = note: expected type parameter `S`
+ found union `MaybeUninit<_>`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.