diff options
| author | Yuki OKUSHI <huyuumi.dev@gmail.com> | 2019-05-01 00:36:51 +0900 |
|---|---|---|
| committer | Yuki OKUSHI <huyuumi.dev@gmail.com> | 2019-05-01 00:36:51 +0900 |
| commit | 748d978c648711d04cd3f3f06722e13c488e017a (patch) | |
| tree | 33439057334006fd30c439adc156b487fac9ecc3 | |
| parent | db7f26566062b5444704aec669bbebbc2ff3a8d6 (diff) | |
| download | rust-748d978c648711d04cd3f3f06722e13c488e017a.tar.gz rust-748d978c648711d04cd3f3f06722e13c488e017a.zip | |
Fix run-pass test
| -rw-r--r-- | src/test/run-pass/existential_type.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/existential_type.rs b/src/test/run-pass/existential_type.rs index dfb195ec830..b36435cf113 100644 --- a/src/test/run-pass/existential_type.rs +++ b/src/test/run-pass/existential_type.rs @@ -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 |
