-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad spans from type error within code expanded from proc macro attribute #71968
Comments
Maybe this should be linked to from #43081 |
This doesn't appear to be a bug in rustc. The fn main() {
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
.block_on(async {
{
Ok(())
}
})
} which gives the error message:
The error message points to the overall expression, which Tokio spans with |
This has been fixed in tokio-rs/tokio#3766. |
Current output:
|
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=7d0f526db1b816572e927bbaaad2750e
I expected to see this happen: Type error reported on
Ok(())
Instead, this happened: Got this diagnostic:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: