-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
... cannot be unpinned
diagnostic uses a wrong span
#90164
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.
Comments
WaffleLapkin
added
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.
labels
Oct 22, 2021
MRE: (playground) fn copy<R: Unpin, W>(_: R, _: W) {}
fn f<T>(r: T) {
let w = ();
copy(r, w);
}
|
Looks like a duplicate of #90101, but the MRE is nice and clean so we could use add it as a regression test. |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Oct 26, 2021
… r=JohnTitor Add regression test for issue 90164 Closes rust-lang#90164 (previously fixed by rust-lang#90181)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
The current output is:
The error mentions
impl AsyncRead
(ie the&mut r
argument), but points to the other argument (&mut file
,tokio::fs::File
).The text was updated successfully, but these errors were encountered: