2018-02-07 21:35:35 -06:00
|
|
|
error[E0049]: method `foo` has 0 type parameters but its trait declaration has 1 type parameter
|
|
|
|
--> $DIR/E0049.rs:18:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo<T: Default>(x: T) -> Self;
|
2018-02-07 21:35:35 -06:00
|
|
|
| --------------------------------- expected 1 type parameter
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ found 0 type parameters
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0049"
|