Skip to content

Commit 89036b3

Browse files
committed
Fix a test
1 parent 361aa81 commit 89036b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/SILOptimizer/moveonly_deinits.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ enum MoveOnlyEnum {
3232
deinit { // expected-error {{'self' consumed more than once}}
3333
let x = self // expected-note {{consuming use}}
3434
_ = x
35-
var y = MoveOnlyEnum.lhs(Klass()) // expected-error {{'y' has consuming use that cannot be eliminated due to a tight exclusivity scope}}
35+
var y = MoveOnlyEnum.lhs(Klass())
3636
y = self // expected-note {{consuming use}}
3737
// We get an infinite recursion since we are going to call our own
3838
// deinit here. We are just testing diagnostics here though.
3939
_ = y // expected-warning {{function call causes an infinite recursion}}
40-
// expected-note @-1 {{consuming use}}
4140
globalMoveOnlyEnum = self // expected-note {{consuming use}}
4241
} // expected-note {{consuming use}}
4342
}

0 commit comments

Comments
 (0)