]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[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 | 4 | LL | fn f(&self, _: ()) { |
2c00a5a8 | 5 | | ------------------ takes 2 distinct arguments |
0531ce1d | 6 | LL | 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 | | |
11 | note: required by a bound in `Option::<T>::map` | |
12 | --> $SRC_DIR/core/src/option.rs:LL:COL | |
13 | | | |
14 | LL | 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 | 17 | error: aborting due to previous error |
2c00a5a8 | 18 | |
0531ce1d | 19 | For more information about this error, try `rustc --explain E0593`. |