-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-inherent_associated_types`#![feature(inherent_associated_types)]``#![feature(inherent_associated_types)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
I tried this code:
#![feature(inherent_associated_types)]
struct Foo<T: ?Sized>(T);
impl<T> Foo<T> {
type Bar = i32;
}
fn main() {
let x: Foo<[u8]>::Bar = 1;
}
I expected to see it fail, since while Foo<[u8]>
is WF, it does not satisfy the where-clauses of the impl
that it's selecting the associated type Bar
from.
fmease
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-inherent_associated_types`#![feature(inherent_associated_types)]``#![feature(inherent_associated_types)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Type
Projects
Status
Done