summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-20009.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-20009.rs')
-rw-r--r--tests/ui/issues/issue-20009.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-20009.rs b/tests/ui/issues/issue-20009.rs
new file mode 100644
index 000000000..f289e58c5
--- /dev/null
+++ b/tests/ui/issues/issue-20009.rs
@@ -0,0 +1,13 @@
+// check-pass
+// Check that associated types are `Sized`
+
+// pretty-expanded FIXME #23616
+
+trait Trait {
+ type Output;
+
+ fn is_sized(&self) -> Self::Output;
+ fn wasnt_sized(&self) -> Self::Output { loop {} }
+}
+
+fn main() {}