Open
Description
pub fn main() {
println!("{}", size_of_val(&5))
}
Compiling playground v0.0.1 (/playground)
error[E0425]: cannot find function `size_of_val` in this scope
--> src/main.rs:2:20
|
2 | println!("{}", size_of_val(&5))
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::intrinsics::size_of_val;
|
1 | use core::mem::size_of_val;
|
1 | use futures_core::core_reexport::intrinsics::size_of_val;
|
1 | use futures_core::core_reexport::mem::size_of_val;
|
and 7 other candidates
error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `playground`.
To learn more, run the command again with --verbose.
I expected rustc to only show me paths that are stable if I'm on a stable compiler, but I also get suggestions to intrinsics.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: Name/path resolution done by `rustc_resolve` specificallyArea: `#[stable]`, `#[unstable]` etc.Area: Suggestions generated by the compiler applied by `cargo fix`Category: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint that should be reworked.Diagnostics: An error or lint that needs small tweaks.Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the compiler team, which will review and decide on the PR/issue.