Rollup merge of #105358 - TaKO8Ki:fix-104260, r=estebank
Add a test for #104260 Fixes #104260
This commit is contained in:
commit
001bd5128b
1 changed files with 14 additions and 0 deletions
14
src/test/ui/associated-inherent-types/issue-104260.rs
Normal file
14
src/test/ui/associated-inherent-types/issue-104260.rs
Normal 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<()>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue