Skip to content

Commit

Permalink
Fix run-pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Apr 30, 2019
1 parent db7f265 commit 748d978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/run-pass/existential_type.rs
Expand Up @@ -68,14 +68,14 @@ fn my_other_iter<U>(u: U) -> MyOtherIter<U> {
}

trait Trait {}
existential type GenericBound<'a, T: Trait>: 'a;
existential type GenericBound<'a, T: Trait>: Sized + 'a;

fn generic_bound<'a, T: Trait + 'a>(t: T) -> GenericBound<'a, T> {
t
}

mod pass_through {
pub existential type Passthrough<T>: 'static;
pub existential type Passthrough<T>: Sized + 'static;

fn define_passthrough<T: 'static>(t: T) -> Passthrough<T> {
t
Expand Down

0 comments on commit 748d978

Please sign in to comment.