summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/count2len.rs
blob: f11a789efbc5b16aa6d52d7d44b16f93395fdf6b (plain)
1
2
3
4
5
6
7
8
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
}