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 | required by a bound introduced by this call
12 note: required by a bound in `Option::<T>::map`
13 --> $SRC_DIR/core/src/option.rs:LL:COL
15 error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
16 --> $DIR/issue-47706.rs:27:9
19 | --- takes 1 argument
22 | --- ^^^^^^^^ expected function that takes 0 arguments
24 | required by a bound introduced by this call
26 note: required by a bound in `foo`
27 --> $DIR/issue-47706.rs:22:8
30 | --- required by a bound in this
33 | ^^^^ required by this bound in `foo`
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0593`.