1 error[E0308]: mismatched types
2 --> $DIR/issue-22684.rs:17:17
4 LL | let _: () = foo::Foo.bar();
5 | ^^^^^^^^^^^^^^ expected (), found bool
7 = note: expected unit type `()`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.