-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-layoutMemory layout of typesMemory layout of typesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Description
rust-analyzer version: 0.3.2593-standalone (6b2e677 2025-08-25)
rustc version: rustc 1.89.0 (29483883e 2025-08-04)
editor or extension: VSCode rust-analyzer v0.3.2593
relevant settings: -
code snippet to reproduce:
pub struct InlineType([u8; InlineType::MAX], u8);
impl InlineType {
pub const MAX: usize = 15;
}
or
pub struct InlineType([u8; Type::MAX], u8);
pub struct Type;
impl Type {
pub const MAX: usize = 15;
}

expected result:
pub const MAX: usize = 15;
pub struct InlineType([u8; MAX], u8);

Metadata
Metadata
Assignees
Labels
A-layoutMemory layout of typesMemory layout of typesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug