File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/compile-fail/impl-trait Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4630,9 +4630,9 @@ This error indicates that there is a mismatch between generic parameters and
4630
4630
impl Trait parameters in a trait declaration versus its impl.
4631
4631
4632
4632
```compile_fail,E0642
4633
- #![feature(conservative_impl_trait )]
4633
+ #![feature(universal_impl_trait )]
4634
4634
trait Foo
4635
- fn foo(&self, &impl Iterator)
4635
+ fn foo(&self, _: &impl Iterator)
4636
4636
}
4637
4637
impl Foo for () {
4638
4638
fn foo<U: Iterator>(&self, _: &U) { } // error method `foo` has incompatible
Original file line number Diff line number Diff line change 12
12
use std:: fmt:: Debug ;
13
13
14
14
trait Foo {
15
- fn foo ( & self , & impl Debug ) ;
15
+ fn foo ( & self , _ : & impl Debug ) ;
16
16
}
17
17
18
18
impl Foo for ( ) {
@@ -21,7 +21,7 @@ impl Foo for () {
21
21
}
22
22
23
23
trait Bar {
24
- fn bar < U : Debug > ( & self , & U ) ;
24
+ fn bar < U : Debug > ( & self , _ : & U ) ;
25
25
}
26
26
27
27
impl Bar for ( ) {
You can’t perform that action at this time.
0 commit comments