summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-14422.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-14422.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-14422.rs b/src/test/ui/issues/issue-14422.rs
new file mode 100644
index 000000000..b9e2065d0
--- /dev/null
+++ b/src/test/ui/issues/issue-14422.rs
@@ -0,0 +1,16 @@
+// run-pass
+#![allow(non_snake_case)]
+
+// aux-build:issue-14422.rs
+
+// pretty-expanded FIXME #23616
+
+extern crate issue_14422 as bug_lib;
+
+use bug_lib::B;
+use bug_lib::make;
+
+pub fn main() {
+ let mut an_A: B = make();
+ an_A.foo();
+}