fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
474 B11 linesraw
1error[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   |
4LL |     fn f(&self, _: ()) {
5   |     ------------------ takes 2 distinct arguments
6LL |         None::<()>.map(Self::f);
7   |                        ^^^^^^^ expected function that takes a single 0-tuple as argument
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0593`.