diff options
| author | Christopher Vittal <christopher.vittal@gmail.com> | 2017-11-10 14:56:16 -0500 |
|---|---|---|
| committer | Christopher Vittal <christopher.vittal@gmail.com> | 2017-11-15 15:46:01 -0500 |
| commit | 7d25d2e05448663ac7294bc8d0bc6bdfe8f8c4c5 (patch) | |
| tree | c1540a78220345fd1c485c8b65c618a97c954473 | |
| parent | a23bea5479d8fcd09b29673932bd736bac3db13d (diff) | |
Remove unamed parameters
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/impl-trait/impl-generic-mismatch.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 9711038a8f7..413cc0ae831 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -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 diff --git a/src/test/compile-fail/impl-trait/impl-generic-mismatch.rs b/src/test/compile-fail/impl-trait/impl-generic-mismatch.rs index 41583d3b795..a95da61aa4c 100644 --- a/src/test/compile-fail/impl-trait/impl-generic-mismatch.rs +++ b/src/test/compile-fail/impl-trait/impl-generic-mismatch.rs @@ -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 () { |
