rust/src/test/ui/issues/issue-18937.stderr

19 lines
589 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0276]: impl has stricter requirements than trait
2018-12-25 08:56:47 -07:00
--> $DIR/issue-18937.rs:19:5
2018-07-15 14:11:54 -07:00
|
LL | / fn foo<F>(&mut self, f: F)
LL | | where F: fmt::Debug + 'a,
LL | | Self: Sized;
| |__________________________- definition of `foo` from trait
...
2019-03-09 15:03:44 +03:00
LL | / fn foo<F>(&mut self, f: F)
2018-07-15 14:11:54 -07:00
LL | | where F: fmt::Debug + 'static,
LL | | {
LL | | self.list.push(Box::new(f));
LL | | }
| |_____^ impl has extra requirement `F: 'static`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0276`.