]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/missing-unit-argument.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / span / missing-unit-argument.rs
CommitLineData
ea8adc8c
XL
1fn foo(():(), ():()) {}
2fn bar(():()) {}
3
abe05a73
XL
4struct S;
5impl S {
6 fn baz(self, (): ()) { }
7 fn generic<T>(self, _: T) { }
8}
9
223e47cc 10fn main() {
136023e0 11 let _: Result<(), String> = Ok(); //~ ERROR this enum variant takes
ff7c6d11
XL
12 foo(); //~ ERROR this function takes
13 foo(()); //~ ERROR this function takes
14 bar(); //~ ERROR this function takes
15 S.baz(); //~ ERROR this function takes
16 S.generic::<()>(); //~ ERROR this function takes
223e47cc 17}