You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
caseborrowing(): // parses as `borrowing()` as before
39
39
break
40
40
41
-
case borrowing x:
41
+
case borrowing x:// expected-warning{{'borrowing' in pattern matches is deprecated}} {{10-19=let}}
42
42
useBorrowBar(x)
43
43
44
-
case.payload(borrowing x):
44
+
case.payload(borrowing x): // expected-warning{{'borrowing' in pattern matches is deprecated}} {{19-28=let}}
45
45
useBorrowFoo(x)
46
46
47
-
caseborrowing x.member: // expected-error{{'borrowing' pattern modifier must be directly applied to pattern variable name}} expected-error{{cannot find 'x' in scope}}
47
+
caseborrowing x.member: // expected-warning{{deprecated}} expected-error{{'borrowing' pattern modifier must be directly applied to pattern variable name}} expected-error{{cannot find 'x' in scope}}
48
48
break
49
49
50
-
case _borrowing x: // expected-warning{{'_borrowing' spelling is deprecated}} {{10-20=borrowing}}
50
+
case borrowing x: // expected-warning{{'borrowing' in pattern matches is deprecated}} {{10-19=let}}
51
+
useBorrowBar(x)
52
+
53
+
case _borrowing x: // expected-warning{{'borrowing' in pattern matches is deprecated}} {{10-20=let}}
0 commit comments