]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18937.stderr
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-18937.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/issue-18937.rs:19:5
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 | /     fn foo<F>(&mut self, f: F)
10 LL | |         where F: fmt::Debug + 'static,
11 LL | |     {
12 LL | |         self.list.push(Box::new(f));
13 LL | |     }
14    | |_____^ impl has extra requirement `F: 'static`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0276`.