-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
rust-analyzer version: 2024-06-10
rustc version: rustc 1.81.0-nightly (8fcd4dd 2024-06-18)
editor or extension: vscode
relevant settings: None
repository link (if public, optional): None
code snippet to reproduce:
// add your code here
fn main() {
println!("Hello, world!");
}
fn ttt() -> String {
String::new()
}
#[cfg(test)]
mod tests {
use super::*;
use test_log::test;
#[test(tokio::test)]
async fn test_ttt() {
let a = ttt();
}
}Since rust analyzer 2024-06-10(0.3.1992),it can not show the var type of a:
And in rust analyzer 2024-06-03(0.3.1983),it works

