summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issue-106226.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/issue-106226.rs')
-rw-r--r--tests/rustdoc-ui/issue-106226.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/issue-106226.rs b/tests/rustdoc-ui/issue-106226.rs
new file mode 100644
index 000000000..71b497a9a
--- /dev/null
+++ b/tests/rustdoc-ui/issue-106226.rs
@@ -0,0 +1,3 @@
+// This is a regression test for <https://github.com/rust-lang/rust/issues/106226>.
+type F = [_; ()];
+//~^ ERROR