rust/tests/ui/issues/issue-4517.rs
Esteban Küber 62ba3e70a1 Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00

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]`
}