rust/tests/ui/suggestions/count2len.rs

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

9 lines
183 B
Rust
Raw Normal View History

fn main() {
let slice = [1,2,3,4];
let vec = vec![1,2,3,4];
slice.count(); //~ERROR: E0599
vec.count(); //~ERROR: E0599
vec.as_slice().count(); //~ERROR: E0599
}