Rollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton
This somehow got left out of https://github.com/rust-lang/rust/pull/25308
This commit is contained in:
commit
3ce4b993e3
1 changed files with 3 additions and 1 deletions
|
|
@ -3529,7 +3529,9 @@ The actual implementation for each vtable entry can vary on an object-by-object
|
|||
basis.
|
||||
|
||||
Note that for a trait object to be instantiated, the trait must be
|
||||
_object-safe_. Object safety rules are defined in [RFC 255][rfc255].
|
||||
_object-safe_. Object safety rules are defined in [RFC 255].
|
||||
|
||||
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
|
||||
|
||||
Given a pointer-typed expression `E` of type `&T` or `Box<T>`, where `T`
|
||||
implements trait `R`, casting `E` to the corresponding pointer type `&R` or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue