]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/remove-extra-argument.rs
Auto merge of #100578 - Urgau:float-next-up-down, r=scottmcm
[rust.git] / src / test / ui / typeck / remove-extra-argument.rs
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![], vec![])
7     //~^ ERROR this function takes 1 argument but 2 arguments were supplied
8     //~| HELP remove the extra argument
9 }