summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-ascription-instead-of-initializer.rs
blob: 9f9b6f06bbc24f9a781d38a9b2ec0b29d32adc4b (plain)
1
2
3
4
fn main() {
    let x: Vec::with_capacity(10, 20);  //~ ERROR expected type, found `10`
    //~^ ERROR this function takes 1 argument
}