rust/tests/ui/type/type-ascription-instead-of-...

5 lines
131 B
Rust

fn main() {
let x: Vec::with_capacity(10, 20); //~ ERROR expected type, found `10`
//~^ ERROR function takes 1 argument
}