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