]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/impl-trait-return-trailing-semicolon.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / impl-trait-return-trailing-semicolon.stderr
1 error[E0277]: the trait bound `(): Bar` is not satisfied
2   --> $DIR/impl-trait-return-trailing-semicolon.rs:3:13
3    |
4 LL | fn foo() -> impl Bar {
5    |             ^^^^^^^^ the trait `Bar` is not implemented for `()`
6 LL |     5;
7    |      - consider removing this semicolon
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.