test: add test for #4954
This commit is contained in:
parent
33d1368674
commit
bfc60466bd
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…
x
Reference in New Issue
Block a user