Fix typo in E0759
This commit is contained in:
parent
7ce1b3b244
commit
642d27d40a
@ -27,7 +27,7 @@ fn bar(x: &i32) -> Box<dyn Debug + 'static> { // ok!
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Both [`dyn Trait`] and [`impl Trait`] in return types have a an implicit
|
Both [`dyn Trait`] and [`impl Trait`] in return types have an implicit
|
||||||
`'static` requirement, meaning that the value implementing them that is being
|
`'static` requirement, meaning that the value implementing them that is being
|
||||||
returned has to be either a `'static` borrow or an owned value.
|
returned has to be either a `'static` borrow or an owned value.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user