fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
474 B18 linesraw
1error[E0061]: this function takes 1 argument but 0 arguments were supplied
2  --> $DIR/issue-58451.rs:12:9
3   |
4LL | / fn f<I>(i: I)
5LL | | where
6LL | |     I: IntoIterator,
7LL | |     I::Item: for<'a> Into<&'a ()>,
8LL | | {}
9   | |__- defined here
10...
11LL |       f(&[f()]);
12   |           ^-- supplied 0 arguments
13   |           |
14   |           expected 1 argument
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0061`.