rust/tests/ui/issues/issue-4517.rs

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

9 lines
163 B
Rust
Raw Normal View History

2014-12-06 02:12:25 +00:00
fn bar(int_param: usize) {}
2013-02-19 07:55:37 +00:00
fn main() {
let foo: [u8; 4] = [1; 4];
2014-02-05 22:33:10 +00:00
bar(foo);
2015-01-12 06:01:44 +00:00
//~^ ERROR mismatched types
//~| expected `usize`, found `[u8; 4]`
2013-02-19 07:55:37 +00:00
}