Remove unamed parameters
This commit is contained in:
parent
a23bea5479
commit
7d25d2e054
2 changed files with 4 additions and 4 deletions
|
@ -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.
|
impl Trait parameters in a trait declaration versus its impl.
|
||||||
|
|
||||||
```compile_fail,E0642
|
```compile_fail,E0642
|
||||||
#![feature(conservative_impl_trait)]
|
#![feature(universal_impl_trait)]
|
||||||
trait Foo
|
trait Foo
|
||||||
fn foo(&self, &impl Iterator)
|
fn foo(&self, _: &impl Iterator)
|
||||||
}
|
}
|
||||||
impl Foo for () {
|
impl Foo for () {
|
||||||
fn foo<U: Iterator>(&self, _: &U) { } // error method `foo` has incompatible
|
fn foo<U: Iterator>(&self, _: &U) { } // error method `foo` has incompatible
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn foo(&self, &impl Debug);
|
fn foo(&self, _: &impl Debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Foo for () {
|
impl Foo for () {
|
||||||
|
@ -21,7 +21,7 @@ impl Foo for () {
|
||||||
}
|
}
|
||||||
|
|
||||||
trait Bar {
|
trait Bar {
|
||||||
fn bar<U: Debug>(&self, &U);
|
fn bar<U: Debug>(&self, _: &U);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Bar for () {
|
impl Bar for () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue