rust/src/test/ui/issues/issue-47486.rs
2019-10-14 10:45:56 +09:00

5 lines
149 B
Rust

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