Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ r[coerce.site.constructor]
r[coerce.site.return]
* Function results—either the final line of a block if it is not semicolon-terminated or any expression in a `return` statement

For example, `x` is coerced to have type `&dyn Display` in the following:
For example, `x` is coerced to have type `&dyn core::fmt::Display` in the following:

```rust
use std::fmt::Display;
fn foo(x: &u32) -> &dyn Display {
fn foo(x: &u32) -> &dyn core::fmt::Display {
x
}
```
Expand Down