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 17:34:47 +00:00
// Regression test for issue #1448 and #1386
2015-01-31 16:23:42 +00:00
fn foo(a: u32) -> u32 { a }
2013-09-30 03:06:21 +00:00
fn main() {
2015-01-31 16:23:42 +00:00
println!("{}", foo(10i32)); //~ ERROR mismatched types
}