fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0593]: function is expected to take 1 argument, but it takes 2 arguments 2 --> $DIR/issue-47706.rs:11:22 3 | 4LL | pub fn new(foo: Option<i32>, _: ()) -> Foo { 5 | ------------------------------------------ takes 2 arguments 6... 7LL | self.foo.map(Foo::new) 8 | ^^^^^^^^ expected function that takes 1 argument 9 10error[E0593]: function is expected to take 0 arguments, but it takes 1 argument 11 --> $DIR/issue-47706.rs:27:9 12 | 13LL | Bar(i32), 14 | -------- takes 1 argument 15... 16LL | fn foo<F>(f: F) 17 | --- 18LL | where 19LL | F: Fn(), 20 | ---- required by this bound in `foo` 21... 22LL | foo(Qux::Bar); 23 | ^^^^^^^^ expected function that takes 0 arguments 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0593`.