mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
62ba3e70a1
The previous output was unintuitive to users.
8 lines
163 B
Rust
8 lines
163 B
Rust
fn bar(int_param: usize) {}
|
|
|
|
fn main() {
|
|
let foo: [u8; 4] = [1; 4];
|
|
bar(foo);
|
|
//~^ ERROR mismatched types
|
|
//~| expected `usize`, found `[u8; 4]`
|
|
}
|