1 error[E0276]: impl has stricter requirements than trait
2 --> $DIR/issue-18937.rs:19:5
4 LL | / fn foo<F>(&mut self, f: F)
5 LL | | where F: fmt::Debug + 'a,
7 | |__________________________- definition of `foo` from trait
9 LL | / fn foo<F>(&mut self, f: F)
10 LL | | where F: fmt::Debug + 'static,
12 LL | | self.list.push(Box::new(f));
14 | |_____^ impl has extra requirement `F: 'static`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0276`.