rust/tests/ui/const-generics/issues/issue-67945-1.full.stderr
Esteban Küber 62ba3e70a1 Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00

18 lines
545 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-67945-1.rs:10:20
|
LL | struct Bug<S> {
| - this type parameter
...
LL | let x: S = MaybeUninit::uninit();
| - ^^^^^^^^^^^^^^^^^^^^^ expected type parameter `S`, found `MaybeUninit<_>`
| |
| expected due to this
|
= note: expected type parameter `S`
found union `MaybeUninit<_>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.