]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hrtb/issue-58451.rs
Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank
[rust.git] / src / test / ui / hrtb / issue-58451.rs
1 // Regression test for #58451:
2 //
3 // Error reporting here encountered an ICE in the shift to universes.
4
5 fn f<I>(i: I)
6 where
7     I: IntoIterator,
8     I::Item: for<'a> Into<&'a ()>,
9 {}
10
11 fn main() {
12     f(&[f()]); //~ ERROR this function takes 1 argument
13 }