Skip to content

Commit e6478a3

Browse files
committed
Add regression test for issue 100187
1 parent f03ce30 commit e6478a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/test/ui/impl-trait/issue-100187.rs

+12
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)