-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
stability break in rust 1.54: generic Self types are currently not permitted in anonymous constants #88888
Copy link
Copy link
Closed
Labels
A-SIMDArea: SIMD (Single Instruction Multiple Data)Area: SIMD (Single Instruction Multiple Data)A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityPG-const-genericsProject group: Const genericsProject group: Const genericsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-SIMDArea: SIMD (Single Instruction Multiple Data)Area: SIMD (Single Instruction Multiple Data)A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityPG-const-genericsProject group: Const genericsProject group: Const genericsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen:
This code was accepted in Rust 1.53, so newer versions should also accept it.
Instead, this happened:
Meta
Tested using rustc 1.53 and 1.54 (and newer) from Compiler Explorer.