]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/in-trait/generics-mismatch.stderr
Rollup merge of #105405 - sunfishcode:sunfishcode/export-dynamic, r=TaKO8Ki
[rust.git] / src / test / ui / impl-trait / in-trait / generics-mismatch.stderr
1 error[E0049]: method `bar` has 1 type parameter but its trait declaration has 0 type parameters
2   --> $DIR/generics-mismatch.rs:11:12
3    |
4 LL |     fn bar(&self) -> impl Sized;
5    |           - expected 0 type parameters
6 ...
7 LL |     fn bar<T>(&self) {}
8    |            ^ found 1 type parameter
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0049`.