1 error[E0277]: the trait bound `(): Bar` is not satisfied
2 --> $DIR/impl-trait-return-trailing-semicolon.rs:3:13
4 LL | fn foo() -> impl Bar {
5 | ^^^^^^^^ the trait `Bar` is not implemented for `()`
7 | - consider removing this semicolon
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0277`.