fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0276]: impl has stricter requirements than trait 2 --> $DIR/issue-18937.rs:19:5 3 | 4LL | / fn foo<F>(&mut self, f: F) 5LL | | where F: fmt::Debug + 'a, 6LL | | Self: Sized; 7 | |__________________________- definition of `foo` from trait 8... 9LL | / fn foo<F>(&mut self, f: F) 10LL | | where F: fmt::Debug + 'static, 11LL | | { 12LL | | self.list.push(Box::new(f)); 13LL | | } 14 | |_____^ impl has extra requirement `F: 'static` 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0276`.