]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr
Rollup merge of #105405 - sunfishcode:sunfishcode/export-dynamic, r=TaKO8Ki
[rust.git] / src / test / 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`.