]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-47706-trait.stderr
New upstream version 1.58.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-47706-trait.stderr
CommitLineData
2c00a5a8 1error[E0593]: function is expected to take a single 0-tuple as argument, but it takes 2 distinct arguments
e1599b0c 2 --> $DIR/issue-47706-trait.rs:3:24
2c00a5a8 3 |
0531ce1d 4LL | fn f(&self, _: ()) {
2c00a5a8 5 | ------------------ takes 2 distinct arguments
0531ce1d 6LL | None::<()>.map(Self::f);
c295e0f8
XL
7 | --- ^^^^^^^ expected function that takes a single 0-tuple as argument
8 | |
9 | required by a bound introduced by this call
3c0e092e
XL
10 |
11note: required by a bound in `Option::<T>::map`
12 --> $SRC_DIR/core/src/option.rs:LL:COL
13 |
14LL | pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
15 | ^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
2c00a5a8 16
0531ce1d 17error: aborting due to previous error
2c00a5a8 18
0531ce1d 19For more information about this error, try `rustc --explain E0593`.