]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
1 | fn foo(():(), ():()) {} |
2 | fn bar(():()) {} | |
3 | ||
abe05a73 XL |
4 | struct S; |
5 | impl S { | |
6 | fn baz(self, (): ()) { } | |
7 | fn generic<T>(self, _: T) { } | |
8 | } | |
9 | ||
223e47cc | 10 | fn 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 | } |