]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr
Auto merge of #106742 - compiler-errors:new-solver-make-it-not-ice, r=lcnr
[rust.git] / tests / ui / impl-trait / in-trait / trait-more-generics-than-impl.stderr
1 error[E0049]: method `bar` has 0 type parameters but its trait declaration has 1 type parameter
2   --> $DIR/trait-more-generics-than-impl.rs:11:11
3    |
4 LL |     fn bar<T>() -> impl Sized;
5    |            - expected 1 type parameter
6 ...
7 LL |     fn bar() -> impl Sized {}
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`.