]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0049.stderr
Rollup merge of #56796 - KrishnaSannasi:try_from_impl_change, r=shepmaster
[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:5
3    |
4 LL |     fn foo<T: Default>(x: T) -> Self;
5    |     --------------------------------- expected 1 type parameter
6 ...
7 LL |     fn foo(x: bool) -> Self { Bar } //~ ERROR E0049
8    |     ^^^^^^^^^^^^^^^^^^^^^^^ found 0 type parameters
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0049`.