File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 172
172
#![ feature( no_core) ]
173
173
#![ feature( optimize_attribute) ]
174
174
#![ feature( prelude_import) ]
175
+ #![ feature( reborrow) ]
175
176
#![ feature( repr_simd) ]
176
177
#![ feature( rustc_allow_const_fn_unstable) ]
177
178
#![ feature( rustc_attrs) ]
Original file line number Diff line number Diff line change @@ -1365,3 +1365,11 @@ pub macro CoercePointee($item:item) {
1365
1365
pub trait CoercePointeeValidated {
1366
1366
/* compiler built-in */
1367
1367
}
1368
+
1369
+ /// Allows value to be reborrowed as exclusive, creating a copy of the value
1370
+ /// that disables the source for reads and writes for the lifetime of the copy.
1371
+ #[ lang = "reborrow" ]
1372
+ #[ unstable( feature = "reborrow" , issue = "145612" ) ]
1373
+ pub trait Reborrow {
1374
+ // Empty.
1375
+ }
You can’t perform that action at this time.
0 commit comments