summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-52705/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-52705/main.rs')
-rw-r--r--tests/ui/issues/issue-52705/main.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-52705/main.rs b/tests/ui/issues/issue-52705/main.rs
new file mode 100644
index 000000000..90bb8ca75
--- /dev/null
+++ b/tests/ui/issues/issue-52705/main.rs
@@ -0,0 +1,15 @@
+// run-pass
+#![allow(dead_code)]
+// aux-build:png2.rs
+// compile-flags:--extern png2
+// edition:2018
+
+mod png {
+ use png2 as png_ext;
+
+ fn foo() -> png_ext::DecodingError { unimplemented!() }
+}
+
+fn main() {
+ println!("Hello, world!");
+}