// run-pass #![allow(dead_code)] trait Trait {} struct Foo(U, V) where U: Trait; trait Marker {} struct TwoParams(T, U); impl Marker for TwoParams {} // Clauses with more than 1 param are not checked. struct IndividuallyBogus(TwoParams) where TwoParams: Marker; struct BogusTogether(T, U) where TwoParams: Marker; // Clauses with non-defaulted params are not checked. struct NonDefaultedInClause(TwoParams) where TwoParams: Marker; struct DefaultedLhs(U, V) where V: Trait; // Dependent defaults are not checked. struct Dependent(T, U) where U: Copy; trait SelfBound {} // Not even for well-formedness. struct WellFormedProjection::Item>(A, T); // Issue #49344, predicates with lifetimes should not be checked. trait Scope<'a> {} struct Request<'a, S: Scope<'a> = i32>(S, &'a ()); fn main() {}