@@ -84,7 +84,7 @@ struct EscapableTrivialSelf {
84
84
@lifetime ( self ) // OK
85
85
mutating func mutatingMethodNoParamLifetime( ) -> NEImmortal { NEImmortal ( ) }
86
86
87
- @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(borrow self)' instead}}
87
+ @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(& self)' instead}}
88
88
mutating func mutatingMethodNoParamCopy( ) -> NEImmortal { NEImmortal ( ) }
89
89
90
90
@lifetime ( borrow self)
@@ -106,7 +106,7 @@ struct EscapableTrivialSelf {
106
106
@lifetime ( self )
107
107
mutating func mutatingMethodOneParamLifetime( _: Int ) -> NEImmortal { NEImmortal ( ) }
108
108
109
- @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(borrow self)' instead}}
109
+ @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(& self)' instead}}
110
110
mutating func mutatingMethodOneParamCopy( _: Int ) -> NEImmortal { NEImmortal ( ) }
111
111
112
112
@lifetime ( borrow self)
@@ -138,7 +138,7 @@ struct EscapableNonTrivialSelf {
138
138
@lifetime ( self )
139
139
mutating func mutatingMethodNoParamLifetime( ) -> NEImmortal { NEImmortal ( ) }
140
140
141
- @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(borrow self)' instead}}
141
+ @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(& self)' instead}}
142
142
mutating func mutatingMethodNoParamCopy( ) -> NEImmortal { NEImmortal ( ) }
143
143
144
144
@lifetime ( & self )
@@ -160,7 +160,7 @@ struct EscapableNonTrivialSelf {
160
160
@lifetime ( self )
161
161
mutating func mutatingMethodOneParamLifetime( _: Int ) -> NEImmortal { NEImmortal ( ) }
162
162
163
- @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(borrow self)' instead}}
163
+ @lifetime ( copy self) // expected-error{{cannot copy the lifetime of an Escapable type, use '@lifetime(& self)' instead}}
164
164
mutating func mutatingMethodOneParamCopy( _: Int ) -> NEImmortal { NEImmortal ( ) }
165
165
166
166
@lifetime ( & self )
0 commit comments