fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
575 B19 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-47486.rs:2:10
3   |
4LL |     () < std::mem::size_of::<_>();
5   |          ^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found usize
6   |
7   = note: expected type `()`
8              found type `usize`
9
10error[E0282]: type annotations needed
11  --> $DIR/issue-47486.rs:3:11
12   |
13LL |     [0u8; std::mem::size_of::<_>()];
14   |           ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0282, E0308.
19For more information about an error, try `rustc --explain E0282`.