Skip to content

Commit bfc6046

Browse files
cowboy-bebugcalebcartwright
authored andcommitted
test: add test for #4954
1 parent 33d1368 commit bfc6046

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/source/issue_4954.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
trait Foo {
2+
type Arg<'a>;
3+
}
4+
5+
struct Bar<T>(T) where for<'a> T: Foo<Arg<'a> = ()>;

tests/target/issue_4954.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
trait Foo {
2+
type Arg<'a>;
3+
}
4+
5+
struct Bar<T>(T)
6+
where
7+
for<'a> T: Foo<Arg<'a> = ()>;

0 commit comments

Comments
 (0)