Skip to content

Commit 39345fe

Browse files
committed
[NFC][Copyable] Update an expected error to a warning.
(cherry picked from commit 286bdeb)
1 parent 42277cf commit 39345fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Parse/inverses.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct Burrito<Filling: ~Copyable>: ~Copyable {}
143143
extension Burrito: Alias {} // expected-error {{conformance to 'Copyable' must be declared in a separate extension}}
144144
// expected-note@-1 {{'Burrito<Filling>' declares conformance to protocol 'Copyable' here}}
145145

146-
extension Burrito: Copyable & Edible & P {} // expected-error {{redundant conformance of 'Burrito<Filling>' to protocol 'Copyable'}}
146+
extension Burrito: Copyable & Edible & P {} // expected-warning {{redundant conformance of 'Burrito<Filling>' to protocol 'Copyable'}}
147147

148148
struct Blah<T: ~Copyable>: ~Copyable {}
149149
extension Blah: P, Q, Copyable, R {} // expected-error {{generic struct 'Blah' required to be 'Copyable' but is marked with '~Copyable'}}

0 commit comments

Comments
 (0)