]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0276]: impl has stricter requirements than trait |
3c0e092e | 2 | --> $DIR/issue-18937.rs:20:31 |
8faf50e0 XL |
3 | | |
4 | LL | / fn foo<F>(&mut self, f: F) | |
5 | LL | | where F: fmt::Debug + 'a, | |
6 | LL | | Self: Sized; | |
7 | | |__________________________- definition of `foo` from trait | |
8 | ... | |
3c0e092e XL |
9 | LL | where F: fmt::Debug + 'static, |
10 | | ^^^^^^^ impl has extra requirement `F: 'static` | |
8faf50e0 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0276`. |