// Copyright 2017 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. 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() {}