]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-47706.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-47706.stderr
CommitLineData
2c00a5a8 1error[E0593]: function is expected to take 1 argument, but it takes 2 arguments
e1599b0c 2 --> $DIR/issue-47706.rs:11:22
2c00a5a8 3 |
0531ce1d 4LL | pub fn new(foo: Option<i32>, _: ()) -> Foo {
2c00a5a8
XL
5 | ------------------------------------------ takes 2 arguments
6...
0531ce1d 7LL | self.foo.map(Foo::new)
c295e0f8
XL
8 | --- ^^^^^^^^ expected function that takes 1 argument
9 | |
10 | required by a bound introduced by this call
3c0e092e
XL
11 |
12note: required by a bound in `Option::<T>::map`
13 --> $SRC_DIR/core/src/option.rs:LL:COL
14 |
a2a8927a
XL
15LL | F: ~const FnOnce(T) -> U,
16 | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
2c00a5a8 17
0531ce1d 18error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
e1599b0c 19 --> $DIR/issue-47706.rs:27:9
0531ce1d
XL
20 |
21LL | Bar(i32),
22 | -------- takes 1 argument
23...
94222f64 24LL | foo(Qux::Bar);
c295e0f8
XL
25 | --- ^^^^^^^^ expected function that takes 0 arguments
26 | |
27 | required by a bound introduced by this call
94222f64
XL
28 |
29note: required by a bound in `foo`
30 --> $DIR/issue-47706.rs:22:8
31 |
e1599b0c 32LL | fn foo<F>(f: F)
ba9703b0 33 | --- required by a bound in this
e1599b0c
XL
34LL | where
35LL | F: Fn(),
94222f64 36 | ^^^^ required by this bound in `foo`
0531ce1d 37
2c00a5a8
XL
38error: aborting due to 2 previous errors
39
0531ce1d 40For more information about this error, try `rustc --explain E0593`.