File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,11 @@ func badTypeConformance2<T>(_: T) where T.Blarg : EqualComparable { } // expecte
33
33
func badTypeConformance3< T> ( _: T ) where ( T ) -> ( ) : EqualComparable { }
34
34
// expected-error@-1{{type '(T) -> ()' in conformance requirement does not refer to a generic parameter or associated type}}
35
35
36
- func badTypeConformance4< T> ( _: T ) where @ escaping ( inout T ) throws -> ( ) : EqualComparable { }
36
+ func badTypeConformance4< T> ( _: T ) where ( inout T ) throws -> ( ) : EqualComparable { }
37
37
// expected-error@-1{{type '(inout T) throws -> ()' in conformance requirement does not refer to a generic parameter or associated type}}
38
- // expected-error@-2 2 {{@escaping attribute may only be used in function parameter position}}
39
38
40
39
func badTypeConformance5< T> ( _: T ) where T & Sequence : EqualComparable { }
41
- // expected-error@-1 2 {{non-protocol, non-class type 'T' cannot be used within a protocol-constrained type}}
42
- // expected-error@-2{{type 'Sequence' in conformance requirement does not refer to a generic parameter or associated type}}
40
+ // expected-error@-1 {{non-protocol, non-class type 'T' cannot be used within a protocol-constrained type}}
43
41
44
42
func badTypeConformance6< T> ( _: T ) where [ T ] : Collection { }
45
43
// expected-warning@-1{{redundant conformance constraint '[T]' : 'Collection'}}
You can’t perform that action at this time.
0 commit comments