Skip to content

Commit

Permalink
Rollup merge of #81571 - schteve:fix_e0759_typo, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix typo in E0759

Minor typo in E0759 error message.
  • Loading branch information
jonas-schievink authored Jan 31, 2021
2 parents 024848d + 642d27d commit 86c01dd
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 86c01dd

Please sign in to comment.