Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 20, 2020
1 parent 46f2b41 commit 7f55c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_error_codes/error_codes/E0759.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
A `'static` requirement in a return type involving a trait is not fulfilled.
Return type involving a trait did not require `'static` lifetime.

Erroneous code examples:

Expand All @@ -14,7 +14,7 @@ fn bar(x: &i32) -> Box<dyn Debug> { // error!
}
```

These examples have the same semantics as the following:
Add `'static` requirement to fix them:

```compile_fail,E0759
# use std::fmt::Debug;
Expand Down

0 comments on commit 7f55c83

Please sign in to comment.