mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Rollup merge of #27982 - frewsxcv:patch-25, r=steveklabnik
This commit is contained in:
@@ -1452,7 +1452,7 @@ fn draw_twice<T: Shape>(surface: Surface, sh: T) {
|
||||
}
|
||||
```
|
||||
|
||||
Traits also define an [trait object](#trait-objects) with the same
|
||||
Traits also define a [trait object](#trait-objects) with the same
|
||||
name as the trait. Values of this type are created by coercing from a
|
||||
pointer of some specific type to a pointer of trait type. For example,
|
||||
`&T` could be coerced to `&Shape` if `T: Shape` holds (and similarly
|
||||
|
||||
Reference in New Issue
Block a user