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