rust/tests/ui/impl-trait/issues/issue-77987.rs
2023-01-11 09:32:08 +00:00

22 lines
253 B
Rust

#![feature(type_alias_impl_trait)]
// check-pass
trait Foo<T> {}
impl<T, U> Foo<T> for U {}
type Scope = impl Foo<()>;
#[allow(unused)]
fn infer_scope() -> Scope {
()
}
#[allow(unused)]
fn ice() -> impl Foo<Scope>
{
loop {}
}
fn main() {}