summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auxiliary/issue-21801.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/auxiliary/issue-21801.rs')
-rw-r--r--tests/rustdoc/auxiliary/issue-21801.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/auxiliary/issue-21801.rs b/tests/rustdoc/auxiliary/issue-21801.rs
new file mode 100644
index 000000000..732612ff0
--- /dev/null
+++ b/tests/rustdoc/auxiliary/issue-21801.rs
@@ -0,0 +1,9 @@
+// compile-flags: -Cmetadata=aux
+
+pub struct Foo;
+
+impl Foo {
+ pub fn new<F>(f: F) -> Foo where F: FnMut() -> i32 {
+ loop {}
+ }
+}