rust/tests/ui/const-generics/issues/issue-67945-1.full.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
545 B
Plaintext
Raw Normal View History

2020-10-03 11:00:18 -05:00
error[E0308]: mismatched types
--> $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();
| - ^^^^^^^^^^^^^^^^^^^^^ 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`.