mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
2f9a240b91
Fixes #101852
12 lines
335 B
Rust
12 lines
335 B
Rust
// 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() {}
|