]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-18937.stderr
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-18937.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/issue-18937.rs:20:31
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 ...
9 LL |           where F: fmt::Debug + 'static,
10    |                                 ^^^^^^^ impl has extra requirement `F: 'static`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0276`.