mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Add a test for associated existential type
This commit is contained in:
parent
6d7a764b3d
commit
a2b40bd70f
@ -9,3 +9,7 @@ where
|
||||
: Fn(T) -> T;
|
||||
|
||||
pub existential type Adderrr<T>: Fn( T ) -> T;
|
||||
|
||||
impl Foo for Bar {
|
||||
existential type E : Trait;
|
||||
}
|
||||
|
@ -9,3 +9,7 @@ where
|
||||
: Fn(T) -> T;
|
||||
|
||||
pub existential type Adderrr<T>: Fn(T) -> T;
|
||||
|
||||
impl Foo for Bar {
|
||||
existential type E: Trait;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user