]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-47706-trait.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-47706-trait.stderr
1 error[E0593]: function is expected to take a single 0-tuple as argument, but it takes 2 distinct arguments
2   --> $DIR/issue-47706-trait.rs:3:24
3    |
4 LL |     fn f(&self, _: ()) {
5    |     ------------------ takes 2 distinct arguments
6 LL |         None::<()>.map(Self::f);
7    |                        ^^^^^^^ expected function that takes a single 0-tuple as argument
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0593`.