]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-47486.stderr
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-47486.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-47486.rs:2:10
3    |
4 LL |     () < std::mem::size_of::<_>();
5    |     --   ^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `usize`
6    |     |
7    |     expected because this is `()`
8
9 error[E0282]: type annotations needed
10   --> $DIR/issue-47486.rs:3:11
11    |
12 LL |     [0u8; std::mem::size_of::<_>()];
13    |           ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `size_of`
14
15 error: aborting due to 2 previous errors
16
17 Some errors have detailed explanations: E0282, E0308.
18 For more information about an error, try `rustc --explain E0282`.