2020-10-03 11:00:18 -05:00
|
|
|
error[E0308]: mismatched types
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/issue-67945-1.rs:10:20
|
2020-10-03 11:00:18 -05:00
|
|
|
|
|
|
|
|
LL | struct Bug<S> {
|
|
|
|
| - this type parameter
|
|
|
|
...
|
|
|
|
LL | let x: S = MaybeUninit::uninit();
|
2023-01-02 20:00:33 -06:00
|
|
|
| - ^^^^^^^^^^^^^^^^^^^^^ expected type parameter `S`, found `MaybeUninit<_>`
|
2020-10-03 11:00:18 -05:00
|
|
|
| |
|
|
|
|
| expected due to this
|
|
|
|
|
|
|
|
|
= note: expected type parameter `S`
|
|
|
|
found union `MaybeUninit<_>`
|
|
|
|
|
2021-10-12 15:47:34 -05:00
|
|
|
error: aborting due to previous error
|
2020-10-03 11:00:18 -05:00
|
|
|
|
2021-10-12 15:47:34 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|