mirror of https://github.com/rust-lang/rust
15 lines
516 B
Plaintext
15 lines
516 B
Plaintext
error[E0276]: impl has stricter requirements than trait
|
|
--> $DIR/issue-18937.rs:20:31
|
|
|
|
|
LL | / fn foo<F>(&mut self, f: F)
|
|
LL | | where F: fmt::Debug + 'a,
|
|
LL | | Self: Sized;
|
|
| |__________________________- definition of `foo` from trait
|
|
...
|
|
LL | where F: fmt::Debug + 'static,
|
|
| ^^^^^^^ impl has extra requirement `F: 'static`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0276`.
|