blob: 8879aec35e5994bf12f8b0363ab5a4f9bc30fc7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 `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`.
|