Skip to content

Commit

Permalink
Fix typo in E0759
Browse files Browse the repository at this point in the history
  • Loading branch information
schteve committed Jan 30, 2021
1 parent 7ce1b3b commit 642d27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0759.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
returned has to be either a `'static` borrow or an owned value.

Expand Down

0 comments on commit 642d27d

Please sign in to comment.