From d15ca0974ed716ae6c701add8757183d7550d766 Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Tue, 6 Dec 2022 17:49:24 +0900 Subject: [PATCH] add a test for #104260 --- .../ui/associated-inherent-types/issue-104260.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/ui/associated-inherent-types/issue-104260.rs diff --git a/src/test/ui/associated-inherent-types/issue-104260.rs b/src/test/ui/associated-inherent-types/issue-104260.rs new file mode 100644 index 00000000000..a73cd1775b4 --- /dev/null +++ b/src/test/ui/associated-inherent-types/issue-104260.rs @@ -0,0 +1,14 @@ +// check-pass + +#![feature(inherent_associated_types)] +#![allow(incomplete_features)] + +struct Foo; + +impl Foo { + type Bar = u8; +} + +fn main() { + let a: Foo::Bar<()>; +}