summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-57264-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/issue-57264-2.rs')
-rw-r--r--tests/ui/privacy/issue-57264-2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/privacy/issue-57264-2.rs b/tests/ui/privacy/issue-57264-2.rs
new file mode 100644
index 000000000..36ce5fd3b
--- /dev/null
+++ b/tests/ui/privacy/issue-57264-2.rs
@@ -0,0 +1,10 @@
+// check-pass
+// aux-build:issue-57264-2.rs
+
+extern crate issue_57264_2;
+
+fn infer<T: issue_57264_2::PubTraitWithSingleImplementor>(arg: T) -> T { arg }
+
+fn main() {
+ infer(None).unwrap().pub_method();
+}