1 error[E0599]: no method named `count` found for array `[{integer}; 4]` in the current scope
2 --> $DIR/count2len.rs:5:11
7 | method cannot be called on `[{integer}; 4]` due to unsatisfied trait bounds
8 | help: consider using `len` instead
10 = note: `count` is defined on `Iterator`, which `[{integer}; 4]` does not implement
12 error[E0599]: no method named `count` found for struct `Vec<{integer}>` in the current scope
13 --> $DIR/count2len.rs:6:9
18 | method cannot be called on `Vec<{integer}>` due to unsatisfied trait bounds
19 | help: consider using `len` instead
21 = note: `count` is defined on `Iterator`, which `Vec<{integer}>` does not implement
23 error[E0599]: no method named `count` found for reference `&[{integer}]` in the current scope
24 --> $DIR/count2len.rs:7:20
26 LL | vec.as_slice().count();
29 | method cannot be called on `&[{integer}]` due to unsatisfied trait bounds
30 | help: consider using `len` instead
32 = note: `count` is defined on `Iterator`, which `&[{integer}]` does not implement
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0599`.