-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
False compile error on associated type bounds #125845
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.fixed-by-next-solverFixed by the next-generation trait solver, `-Znext-solver`.Fixed by the next-generation trait solver, `-Znext-solver`.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code with rustc 1.79.0-beta.7 (playground):
I expected a successful compilation for this code as Associated Type Bounds has been stabilized (#122055). However, I got the following compile error:
The code compiles if
Traitis replaced with one of the following:or
Addis replaced with user-definedOp:Meta
rustc +beta --version --verbose: