1
Fork 0

Remove unamed parameters

This commit is contained in:
Christopher Vittal 2017-11-10 14:56:16 -05:00
parent a23bea5479
commit 7d25d2e054
2 changed files with 4 additions and 4 deletions

View file

@ -4630,9 +4630,9 @@ This error indicates that there is a mismatch between generic parameters and
impl Trait parameters in a trait declaration versus its impl.
```compile_fail,E0642
#![feature(conservative_impl_trait)]
#![feature(universal_impl_trait)]
trait Foo
fn foo(&self, &impl Iterator)
fn foo(&self, _: &impl Iterator)
}
impl Foo for () {
fn foo<U: Iterator>(&self, _: &U) { } // error method `foo` has incompatible

View file

@ -12,7 +12,7 @@
use std::fmt::Debug;
trait Foo {
fn foo(&self, &impl Debug);
fn foo(&self, _: &impl Debug);
}
impl Foo for () {
@ -21,7 +21,7 @@ impl Foo for () {
}
trait Bar {
fn bar<U: Debug>(&self, &U);
fn bar<U: Debug>(&self, _: &U);
}
impl Bar for () {