1 error[E0593]: function is expected to take 1 argument, but it takes 2 arguments
2 --> $DIR/issue-47706.rs:11:22
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:9
14 | -------- takes 1 argument
17 | ^^^^^^^^ expected function that takes 0 arguments
19 note: required by a bound in `foo`
20 --> $DIR/issue-47706.rs:22:8
23 | --- required by a bound in this
26 | ^^^^ required by this bound in `foo`
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0593`.