2019-02-20 04:39:04 -06:00
|
|
|
// Regression test for #58451:
|
|
|
|
//
|
|
|
|
// Error reporting here encountered an ICE in the shift to universes.
|
|
|
|
|
|
|
|
fn f<I>(i: I)
|
|
|
|
where
|
|
|
|
I: IntoIterator,
|
|
|
|
I::Item: for<'a> Into<&'a ()>,
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {
|
2023-01-04 21:02:10 -06:00
|
|
|
f(&[f()]); //~ ERROR function takes 1 argument
|
2019-02-20 04:39:04 -06:00
|
|
|
}
|