fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
589 B18 linesraw
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`.