]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47706.stderr
Avoid codegen for Result::into_ok in lang_start
[rust.git] / src / test / ui / issues / issue-47706.stderr
1 error[E0593]: function is expected to take 1 argument, but it takes 2 arguments
2   --> $DIR/issue-47706.rs:11:22
3    |
4 LL |     pub fn new(foo: Option<i32>, _: ()) -> Foo {
5    |     ------------------------------------------ takes 2 arguments
6 ...
7 LL |         self.foo.map(Foo::new)
8    |                      ^^^^^^^^ expected function that takes 1 argument
9
10 error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
11   --> $DIR/issue-47706.rs:27:9
12    |
13 LL |     Bar(i32),
14    |     -------- takes 1 argument
15 ...
16 LL |     foo(Qux::Bar);
17    |         ^^^^^^^^ expected function that takes 0 arguments
18    |
19 note: required by a bound in `foo`
20   --> $DIR/issue-47706.rs:22:8
21    |
22 LL | fn foo<F>(f: F)
23    |    --- required by a bound in this
24 LL | where
25 LL |     F: Fn(),
26    |        ^^^^ required by this bound in `foo`
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0593`.