Rollup merge of #105358 - TaKO8Ki:fix-104260, r=estebank

Add a test for #104260

Fixes #104260
This commit is contained in:
Matthias Krüger 2022-12-06 23:13:50 +01:00 committed by GitHub
commit 001bd5128b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
// check-pass
#![feature(inherent_associated_types)]
#![allow(incomplete_features)]
struct Foo;
impl Foo {
type Bar<T> = u8;
}
fn main() {
let a: Foo::Bar<()>;
}