rust/tests/ui/higher-rank-trait-bounds/issue-58451.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
250 B
Rust
Raw Normal View History

2019-02-20 10:39:04 +00: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() {
f(&[f()]); //~ ERROR function takes 1 argument
2019-02-20 10:39:04 +00:00
}