]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numeric/len.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / numeric / len.rs
1 fn main() {
2     let array = [1, 2, 3];
3     test(array.len()); //~ ERROR mismatched types
4 }
5
6 fn test(length: u32) {
7     println!("{}", length);
8 }