Skip to content

Redefining built-in types does not work #20427

Closed
@Marckvdv

Description

@Marckvdv

The following code does not do what I expect it to do:

type int = i8;
println!("{}", std::mem::size_of::<int>()); // => prints 8, should be 1? Or shouldn't it compile at all?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions