rust/tests/ui/impl-trait/issues/issue-77987.rs

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

22 lines
253 B
Rust
Raw Normal View History

2022-02-17 07:55:58 -06:00
#![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() {}