// RUN: %target-typecheck-verify-swift protocol P {} struct S where V: P { // expected-note {{where 'V' = 'Double'}} var value: V } struct A { subscript(_ v: S) -> A { fatalError() } } func foo(_ v: Double) { _ = A()[S(value: v)] // expected-error@-1 {{generic struct 'S' requires that 'Double' conform to 'P'}} }