blob: 02f95fe5604b242492bb9564a251bbe956ad8357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// issue: rust-lang/rust#101852
// ICE opaque type with non-universal region substs
pub fn ice(x: impl AsRef<str>) -> impl IntoIterator<Item = ()> {
//~^ WARN function cannot return without recursing
vec![].append(&mut ice(x.as_ref()));
//~^ ERROR expected generic type parameter, found `&str`
Vec::new()
}
fn main() {}
|