1 error[E0593]: function is expected to take 1 argument, but it takes 2 arguments
2 --> $DIR/issue-47706.rs:11:18
4 LL | pub fn new(foo: Option<i32>, _: ()) -> Foo {
5 | ------------------------------------------ takes 2 arguments
7 LL | self.foo.map(Foo::new)
8 | ^^^ expected function that takes 1 argument
10 error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
11 --> $DIR/issue-47706.rs:27:5
14 | -------- takes 1 argument
17 | ^^^ expected function that takes 0 arguments
19 note: required by `foo`
20 --> $DIR/issue-47706.rs:20:1
22 LL | / fn foo<F>(f: F)
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0593`.