mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +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;
|
: Fn(T) -> T;
|
||||||
|
|
||||||
pub existential type Adderrr<T>: 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;
|
: Fn(T) -> T;
|
||||||
|
|
||||||
pub existential type Adderrr<T>: 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