]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/remove-extra-argument.fixed
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / typeck / remove-extra-argument.fixed
1 // run-rustfix
2 // Check that the HELP suggestion is `l(vec![])` instead of `l($crate::vec::Vec::new())`
3 fn l(_a: Vec<u8>) {}
4
5 fn main() {
6 l(vec![])
7 //~^ ERROR this function takes 1 argument but 2 arguments were supplied
8 //~| HELP remove the extra argument
9 }