Files
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-05 18:12:25 -08:00
fn bar(int_param: usize) {}
2013-02-18 23:55:37 -08:00
fn main() {
let foo: [u8; 4] = [1; 4];
2014-02-05 16:33:10 -06:00
bar(foo);
2015-01-12 01:01:44 -05:00
//~^ ERROR mismatched types
//~| expected `usize`, found `[u8; 4]`
2013-02-18 23:55:37 -08:00
}