]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issues/issue-67945-1.full.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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`.