rust/tests/ui/issues/issue-47486.rs
2023-01-11 09:32:08 +00:00

5 lines
149 B
Rust

fn main() {
() < std::mem::size_of::<_>(); //~ ERROR: mismatched types
[0u8; std::mem::size_of::<_>()]; //~ ERROR: type annotations needed
}