about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-06 23:13:50 +0100
committerGitHub <noreply@github.com>2022-12-06 23:13:50 +0100
commit001bd5128bc8a859da59a4cbbb83bc6e770b0bae (patch)
tree4508ed21bcfa4c55c71a34328ebe21356e20b2a7 /src
parente434f613fddec939f357e5afad79c90b6fc4a7a1 (diff)
parentd15ca0974ed716ae6c701add8757183d7550d766 (diff)
downloadrust-001bd5128bc8a859da59a4cbbb83bc6e770b0bae.tar.gz
rust-001bd5128bc8a859da59a4cbbb83bc6e770b0bae.zip
Rollup merge of #105358 - TaKO8Ki:fix-104260, r=estebank
Add a test for #104260

Fixes #104260
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/associated-inherent-types/issue-104260.rs14
1 files changed, 14 insertions, 0 deletions
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<T> = u8;
+}
+
+fn main() {
+    let a: Foo::Bar<()>;
+}