]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/issue-67945-1.full.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issue-67945-1.full.stderr
CommitLineData
29967ef6 1error[E0308]: mismatched types
5869c6ff 2 --> $DIR/issue-67945-1.rs:13:20
29967ef6
XL
3 |
4LL | struct Bug<S> {
5 | - this type parameter
6...
7LL | 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
15error[E0392]: parameter `S` is never used
5869c6ff 16 --> $DIR/issue-67945-1.rs:10:12
29967ef6
XL
17 |
18LL | 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
23error: aborting due to 2 previous errors
24
25Some errors have detailed explanations: E0308, E0392.
26For more information about an error, try `rustc --explain E0308`.