]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47486.stderr
2b49c273330684ba3fe808feddc07de1ac79cc2f
[rust.git] / src / test / 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    = note: expected unit type `()`
8                    found type `usize`
9
10 error[E0282]: type annotations needed
11   --> $DIR/issue-47486.rs:3:11
12    |
13 LL |     [0u8; std::mem::size_of::<_>()];
14    |           ^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0282, E0308.
19 For more information about an error, try `rustc --explain E0282`.