Existence of trait alias breaks name resolution of associated consts #72415
Labels
A-associated-items
Area: Associated items (types, constants & functions)
C-bug
Category: This is a bug.
F-trait_alias
`#![feature(trait_alias)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
On
1.45.0-nightly (a74d1862d 2020-05-14)
, this trait definition/impl works fine:Here,
u32::MAX
resolves unambiguously to the associated const onu32
.If I merely define a trait alias that uses
Bounded
:I get this error:
The text was updated successfully, but these errors were encountered: