-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Incorrect std::mem::size_of_var for extern types #106577
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-extern_types`#![feature(extern_types)]``#![feature(extern_types)]`requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-extern_types`#![feature(extern_types)]``#![feature(extern_types)]`requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hello, following code on nightly playground returns zero, indicating extern type behaving like ZST, while in comparison,
size_offails to compile. According to the RFC, panicking or compilation failure should happen, so this behavior seem incorrect.