File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments