-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
"conflicting associated type bounds when expanding trait alias", but there is no actual conflict #146548
Copy link
Copy link
Open
Labels
A-HIR-ty-loweringArea: HIR ty lowering (HIR → middle::ty IR)Area: HIR ty lowering (HIR → middle::ty IR)A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)A-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutC-bugCategory: This is a bug.Category: This is a bug.F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`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.
Metadata
Metadata
Assignees
Labels
A-HIR-ty-loweringArea: HIR ty lowering (HIR → middle::ty IR)Area: HIR ty lowering (HIR → middle::ty IR)A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)A-dyn-traitArea: trait objects, vtable layoutArea: trait objects, vtable layoutC-bugCategory: This is a bug.Category: This is a bug.F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: It compiles, just as it would if
fn(&())were replaced withi32Instead, this happened:
AIUI this is a consequence of #136458?
@rustbot label T-types F-trait_alias A-dyn-trait A-associated-items requires-nightly
Meta
rustc --version --verbose: