mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
9 lines
183 B
Rust
9 lines
183 B
Rust
|
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
|
||
|
}
|