rust/src/test/compile-fail/issue-3477.rs
Tim Chevalier 65839fa622 Emit a type error for integer literals where the expected type is char
For example, in let x: char = 42; This was an ICE and is now a
proper type error, as per #3477
2012-12-22 15:58:05 -08:00

3 lines
91 B
Rust

fn main() {
let _p: char = 100; //~ ERROR mismatched types: expected `char` but found
}