Skip to content

Commit 7a51fa4

Browse files
spastorinoMark-Simulacrum
authored andcommitted
Add regression test for issue 100187
1 parent 444156e commit 7a51fa4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
trait Trait<T> {
4+
type Ty;
5+
}
6+
impl Trait<&u8> for () {
7+
type Ty = ();
8+
}
9+
10+
fn test<'a, 'b>() -> impl Trait<&'a u8, Ty = impl Sized + 'b> {}
11+
12+
fn main() {}

0 commit comments

Comments
 (0)