2018-02-08 03:35:35 +00:00
|
|
|
error[E0049]: method `foo` has 0 type parameters but its trait declaration has 1 type parameter
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0049.rs:8:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn foo<T: Default>(x: T) -> Self;
|
2018-02-08 03:35:35 +00:00
|
|
|
| --------------------------------- expected 1 type parameter
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn foo(x: bool) -> Self { Bar }
|
2018-02-08 03:35:35 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ found 0 type parameters
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0049`.
|