Inherent associated types defined on non-ADTs don't resolve successfully #106719
Labels
C-bug
Category: This is a bug.
F-inherent_associated_types
`#![feature(inherent_associated_types)]`
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.
Inherent associated types where the self type isn't an ADT (e.g. a trait object type or a primitive type like
bool
ori32
) are currently not resolved successfully.On Trait Object Types
I expected to see the following code compile successfully:
Instead, the following error was emitted:
For comparison, the analogous code involving inherent associated constants works flawlessly.
On Primitive Types
I expected to see the following code compile successfully (
#![no_core]
is representative for thecore
crate)Instead, the following error was emitted:
I'd like to see #105961 merged first. Thus I consider this issue blocked for now.
@rustbot label T-compiler F-inherent_associated_types requires-nightly S-blocked
@rustbot claim
The text was updated successfully, but these errors were encountered: