blob: 5aa46545943cb5a13895d0cd4e52294d5b796b6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for associated functions
--> $DIR/bad-infer-in-trait-impl.rs:6:15
|
LL | fn bar(s: _) {}
| ^ not allowed in type signatures
error[E0050]: method `bar` has 1 parameter but the declaration in trait `Foo::bar` has 0
--> $DIR/bad-infer-in-trait-impl.rs:6:15
|
LL | fn bar();
| --------- trait requires 0 parameters
...
LL | fn bar(s: _) {}
| ^ expected 0 parameters, found 1
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0050, E0121.
For more information about an error, try `rustc --explain E0050`.
|