rustc suggests _::_serde::__private::Ok(1)
instead of Ok(1)
#90982
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: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=use%20serde%3A%3ADeserialize%3B%0A%0A%23%5Bderive(Deserialize)%5D%0Astruct%20S%20%7B%7D%0A%0Afn%20f()%20-%3E%20Result%3Ci8%2C%20()%3E%20%7B%0A%20%20%20%201%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20println!(%22Hello%2C%20world!%22)%3B%0A%7D
The current output is:
Ideally the output should look like:
The bug exists on stable 1.56.1 and current nightly 2021-11-16.
The text was updated successfully, but these errors were encountered: