]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-67945-1.full.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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[E0392]: parameter `S` is never used
16 --> $DIR/issue-67945-1.rs:7:12
17 |
18 LL | struct Bug<S> {
19 | ^ unused parameter
20 |
21 = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
22 = help: if you intended `S` to be a const parameter, use `const S: usize` instead
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0308, E0392.
27 For more information about an error, try `rustc --explain E0308`.