summary refs log tree commit diff
path: root/src/test/ui/issue-18937.stderr
blob: 7b4c35e0dbe35c46dff61c8af8f50ca7499d4dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0276]: impl has stricter requirements than trait
  --> $DIR/issue-18937.rs:29:5
   |
LL | /     fn foo<F>(&mut self, f: F)
LL | |         where F: fmt::Debug + 'a,
LL | |               Self: Sized;
   | |__________________________- definition of `foo` from trait
...
LL | /     fn foo<F>(&mut self, f: F) //~ ERROR impl has stricter
LL | |         where F: fmt::Debug + 'static,
LL | |     {
LL | |         self.list.push(Box::new(f));
LL | |     }
   | |_____^ impl has extra requirement `F: 'static`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0276`.