mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Apply review comments
This commit is contained in:
parent
46f2b410e0
commit
7f55c83487
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user