about summary refs log tree commit diff
path: root/tests/ui/typeck/remove-extra-argument.fixed
blob: 5fb01c877c41fe1c4e77e240348d94e09d791979 (plain)
1
2
3
4
5
6
7
8
9
//@ run-rustfix
// Check that the HELP suggestion is `l(vec![])` instead of `l($crate::vec::Vec::new())`
fn l(_a: Vec<u8>) {}

fn main() {
    l(vec![])
    //~^ ERROR function takes 1 argument but 2 arguments were supplied
    //~| HELP remove the extra argument
}