Skip to content

Commit 748d978

Browse files
committed
Fix run-pass test
1 parent db7f265 commit 748d978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/run-pass/existential_type.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ fn my_other_iter<U>(u: U) -> MyOtherIter<U> {
6868
}
6969

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

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

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

8080
fn define_passthrough<T: 'static>(t: T) -> Passthrough<T> {
8181
t

0 commit comments

Comments
 (0)