rust/tests/ui/issues/issue-1448-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
148 B
Rust
Raw Normal View History

2013-05-08 12:34:47 -05:00
// Regression test for issue #1448 and #1386
2015-01-31 10:23:42 -06:00
fn foo(a: u32) -> u32 { a }
2013-09-29 22:06:21 -05:00
fn main() {
2015-01-31 10:23:42 -06:00
println!("{}", foo(10i32)); //~ ERROR mismatched types
}