convert EXTRA_REQUIREMENT_IN_IMPL into a hard error

cc #37166
This commit is contained in:
Niko Matsakis 2017-11-01 14:23:30 -04:00
parent 64206b44b9
commit 0d78e40e88
11 changed files with 21 additions and 93 deletions

View file

@ -27,7 +27,6 @@ trait A<'a> {
impl<'a> A<'a> for B {
fn foo<F>(&mut self, f: F) //~ ERROR impl has stricter
//~^ WARNING future release
where F: fmt::Debug + 'static,
{
self.list.push(Box::new(f));