Closed
Description
Here is a bad message I got from some code today:
/tmp/t.rs:4:9: 4:22 error: mismatched types: expected `u32` but found `uint` (expected `u32` but found `u`)
/tmp/t.rs:4 foo(1*(1 as uint));
^~~~~~~~~~~~~
error: aborting due to previous error
Note the strange parenthetical: "(expected u32
but found u
)"
Source code to reproduce:
fn foo(_s: u32) { }
fn main() {
foo(1*(1 as uint));
}
Metadata
Metadata
Assignees
Labels
No labels