blob: b8fb332120a4e4d56a51ba0e6fda2650b8b94034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
fn foo(():(), ():()) {}
fn bar(():()) {}
struct S;
impl S {
fn baz(self, (): ()) { }
fn generic<T>(self, _: T) { }
}
fn main() {
let _: Result<(), String> = Ok(); //~ ERROR this function takes
foo(); //~ ERROR this function takes
foo(()); //~ ERROR this function takes
bar(); //~ ERROR this function takes
S.baz(); //~ ERROR this function takes
S.generic::<()>(); //~ ERROR this function takes
}
|