fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
545 B17 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-67945-1.rs:10:20
3   |
4LL | struct Bug<S> {
5   |            - this type parameter
6...
7LL |         let x: S = MaybeUninit::uninit();
8   |                -   ^^^^^^^^^^^^^^^^^^^^^ expected type parameter `S`, found `MaybeUninit<_>`
9   |                |
10   |                expected due to this
11   |
12   = note: expected type parameter `S`
13                       found union `MaybeUninit<_>`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0308`.