Function defined here: How to I get to the actual error?

Hello all, I like to configure vim to only show rust-analyze messages for the current file. However, I realized this causes red underlines with no messages, and green lines with no link tot he related problematic code. Is there a way to configure rust analyzer to be less cryptic when only showing errors form a current file?

Given this main file:

mod definition;
use definition::*;

fn main() {
    call(3);
}

My definition with this content:

pub fn call(a: String) {
    println!("{}", a);
}

I will get this errors whiel looking at definition.rs:

function defined here rustc (E0308)

If I select it, it won't lead me to the problem area. So it is just kind of a floating message that I need to ignore. Is there a way to make this more helpful?

On the main.rs file I get

     ├╴  expected String, found i32 rust-analyzer (E0308) [5, 10]
     ├╴  mismatched types
     │    expected `String`, found integer rustc (E0308) [5, 10]
     ├╴  arguments to this function are incorrect rustc (E0308) [5, 5]
     └╴  try using a conversion method: `.to_string()` rustc (E0308) [5, 11]

I would be nice the message on the definition.rs page linked to this file in some way? Or should I just be showing all errors on every single file? What are other people doing?