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