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