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 {
32
32
deinit { // expected-error {{'self' consumed more than once}}
33
33
let x = self // expected-note {{consuming use}}
34
34
_ = 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 ( ) )
36
36
y = self // expected-note {{consuming use}}
37
37
// We get an infinite recursion since we are going to call our own
38
38
// deinit here. We are just testing diagnostics here though.
39
39
_ = y // expected-warning {{function call causes an infinite recursion}}
40
- // expected-note @-1 {{consuming use}}
41
40
globalMoveOnlyEnum = self // expected-note {{consuming use}}
42
41
} // expected-note {{consuming use}}
43
42
}
You can’t perform that action at this time.
0 commit comments