mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
14 lines
250 B
Rust
14 lines
250 B
Rust
// 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() {
|
|
f(&[f()]); //~ ERROR function takes 1 argument
|
|
}
|