Import suggestions misplaced when beginning of file is #[tokio::main] #89810
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
(playground link)
The current output is:
async
imports look cool tbh, but that's not valid Rust.This happens on stable, beta and nightly.
Ideally the
use std::path::PathBuf
should be placed in line 1 and before theasync
keyword.I tried to keep the issue title and description super specific to this situation as I don't have time to investigate with other macros. Feel free to report similar problems so that I can make it more general.
The text was updated successfully, but these errors were encountered: