Skip to content

Commit 7f55c83

Browse files
committedAug 20, 2020
Apply review comments
1 parent 46f2b41 commit 7f55c83

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-2
lines changed
 

‎src/librustc_error_codes/error_codes/E0759.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A `'static` requirement in a return type involving a trait is not fulfilled.
1+
Return type involving a trait did not require `'static` lifetime.
22

33
Erroneous code examples:
44

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

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

1919
```compile_fail,E0759
2020
# use std::fmt::Debug;

0 commit comments

Comments
 (0)
Please sign in to comment.