about summary refs log tree commit diff
path: root/tests/ui/super.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/super.rs')
-rw-r--r--tests/ui/super.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/super.rs b/tests/ui/super.rs
new file mode 100644
index 00000000000..86c720288c3
--- /dev/null
+++ b/tests/ui/super.rs
@@ -0,0 +1,16 @@
+// run-pass
+
+#![allow(dead_code)]
+// pretty-expanded FIXME #23616
+
+pub mod a {
+    pub fn f() {}
+    pub mod b {
+        fn g() {
+            super::f();
+        }
+    }
+}
+
+pub fn main() {
+}