@@ -84,7 +84,7 @@ struct EscapableTrivialSelf {
8484 @lifetime ( self ) // OK
8585 mutating func mutatingMethodNoParamLifetime( ) -> NEImmortal { NEImmortal ( ) }
8686
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}}
8888 mutating func mutatingMethodNoParamCopy( ) -> NEImmortal { NEImmortal ( ) }
8989
9090 @lifetime ( borrow self)
@@ -106,7 +106,7 @@ struct EscapableTrivialSelf {
106106 @lifetime ( self )
107107 mutating func mutatingMethodOneParamLifetime( _: Int ) -> NEImmortal { NEImmortal ( ) }
108108
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}}
110110 mutating func mutatingMethodOneParamCopy( _: Int ) -> NEImmortal { NEImmortal ( ) }
111111
112112 @lifetime ( borrow self)
@@ -138,7 +138,7 @@ struct EscapableNonTrivialSelf {
138138 @lifetime ( self )
139139 mutating func mutatingMethodNoParamLifetime( ) -> NEImmortal { NEImmortal ( ) }
140140
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}}
142142 mutating func mutatingMethodNoParamCopy( ) -> NEImmortal { NEImmortal ( ) }
143143
144144 @lifetime ( & self )
@@ -160,7 +160,7 @@ struct EscapableNonTrivialSelf {
160160 @lifetime ( self )
161161 mutating func mutatingMethodOneParamLifetime( _: Int ) -> NEImmortal { NEImmortal ( ) }
162162
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}}
164164 mutating func mutatingMethodOneParamCopy( _: Int ) -> NEImmortal { NEImmortal ( ) }
165165
166166 @lifetime ( & self )
0 commit comments