The extension provides linting as shown in the following screenshot:
It also populates the Problems panel.
For the code:
fn foo(i: i32) {}
fn main() {
foo(2i64);
}
The Problems panel would look like:
Linting behaves differently in RLS Mode than in Legacy Mode.