test: add test for #4954
This commit is contained in:
parent
33d1368674
commit
bfc60466bd
2 changed files with 12 additions and 0 deletions
5
tests/source/issue_4954.rs
Normal file
5
tests/source/issue_4954.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
trait Foo {
|
||||||
|
type Arg<'a>;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Bar<T>(T) where for<'a> T: Foo<Arg<'a> = ()>;
|
7
tests/target/issue_4954.rs
Normal file
7
tests/target/issue_4954.rs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
trait Foo {
|
||||||
|
type Arg<'a>;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Bar<T>(T)
|
||||||
|
where
|
||||||
|
for<'a> T: Foo<Arg<'a> = ()>;
|
Loading…
Reference in a new issue