Skip to content

Commit 7d25d2e

Browse files
committed
Remove unamed parameters
1 parent a23bea5 commit 7d25d2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4630,9 +4630,9 @@ This error indicates that there is a mismatch between generic parameters and
46304630
impl Trait parameters in a trait declaration versus its impl.
46314631
46324632
```compile_fail,E0642
4633-
#![feature(conservative_impl_trait)]
4633+
#![feature(universal_impl_trait)]
46344634
trait Foo
4635-
fn foo(&self, &impl Iterator)
4635+
fn foo(&self, _: &impl Iterator)
46364636
}
46374637
impl Foo for () {
46384638
fn foo<U: Iterator>(&self, _: &U) { } // error method `foo` has incompatible

src/test/compile-fail/impl-trait/impl-generic-mismatch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use std::fmt::Debug;
1313

1414
trait Foo {
15-
fn foo(&self, &impl Debug);
15+
fn foo(&self, _: &impl Debug);
1616
}
1717

1818
impl Foo for () {
@@ -21,7 +21,7 @@ impl Foo for () {
2121
}
2222

2323
trait Bar {
24-
fn bar<U: Debug>(&self, &U);
24+
fn bar<U: Debug>(&self, _: &U);
2525
}
2626

2727
impl Bar for () {

0 commit comments

Comments
 (0)