We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7f265 commit 748d978Copy full SHA for 748d978
src/test/run-pass/existential_type.rs
@@ -68,14 +68,14 @@ fn my_other_iter<U>(u: U) -> MyOtherIter<U> {
68
}
69
70
trait Trait {}
71
-existential type GenericBound<'a, T: Trait>: 'a;
+existential type GenericBound<'a, T: Trait>: Sized + 'a;
72
73
fn generic_bound<'a, T: Trait + 'a>(t: T) -> GenericBound<'a, T> {
74
t
75
76
77
mod pass_through {
78
- pub existential type Passthrough<T>: 'static;
+ pub existential type Passthrough<T>: Sized + 'static;
79
80
fn define_passthrough<T: 'static>(t: T) -> Passthrough<T> {
81
0 commit comments