]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0049.stderr
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
[rust.git] / src / test / ui / error-codes / E0049.stderr
1 error[E0049]: method `foo` has 0 type parameters but its trait declaration has 1 type parameter
2   --> $DIR/E0049.rs:8:11
3    |
4 LL |     fn foo<T: Default>(x: T) -> Self;
5    |            - expected 1 type parameter
6 ...
7 LL |     fn foo(x: bool) -> Self { Bar }
8    |           ^ found 0 type parameters
9
10 error[E0049]: method `fuzz` has 0 type parameters but its trait declaration has 2 type parameters
11   --> $DIR/E0049.rs:18:12
12    |
13 LL |     fn fuzz<A: Default, B>(x: A, y: B) -> Self;
14    |             -           -
15    |             |
16    |             expected 2 type parameters
17 ...
18 LL |     fn fuzz(x: bool, y: bool) -> Self { Baz }
19    |            ^ found 0 type parameters
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0049`.