Closed
Description
This code successfully compiles even though it should not (since String: !Copy
).
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
pub enum Ty {}
impl Ty {
type Pr<T: Copy> = T;
}
const _: Ty::Pr<String> = String::new();
This strongly relates to #104251 which is only about the bounds on the Self type parameter (as I see it, others might disagree). #105961 does not address the issue around inherent GATs and I don't plan to change that (maybe). I consider this issue blocked on #105961 to avoid future merge conflicts.
@rustbot label T-compiler F-inherent_associated_types F-generic_associated_types requires-nightly S-blocked
@rustbot claim