rust/tests/ui/numeric/len.rs

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

9 lines
145 B
Rust
Raw Normal View History

2019-04-21 22:57:00 +00:00
fn main() {
let array = [1, 2, 3];
test(array.len()); //~ ERROR mismatched types
}
fn test(length: u32) {
println!("{}", length);
}