]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-67945-1.full.stderr
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[rust.git] / src / test / ui / const-generics / issues / issue-67945-1.full.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-67945-1.rs:10:20
3    |
4 LL | struct Bug<S> {
5    |            - this type parameter
6 ...
7 LL |         let x: S = MaybeUninit::uninit();
8    |                -   ^^^^^^^^^^^^^^^^^^^^^ expected type parameter `S`, found union `MaybeUninit`
9    |                |
10    |                expected due to this
11    |
12    = note: expected type parameter `S`
13                        found union `MaybeUninit<_>`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.