Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 2277e9a

Browse files
authored
Add ICE 77987 (#505)
1 parent 29ff851 commit 2277e9a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ices/77987.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#![feature(type_alias_impl_trait)]
2+
3+
trait Foo<T> {}
4+
impl<T, U> Foo<T> for U {}
5+
6+
type Scope = impl Foo<()>;
7+
8+
#[allow(unused)]
9+
fn infer_scope() -> Scope {
10+
()
11+
}
12+
13+
#[allow(unused)]
14+
fn ice() -> impl Foo<Scope> {
15+
loop {}
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)