mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
22 lines
253 B
Rust
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() {}
|