summaryrefslogtreecommitdiffstats
path: root/tests/ui/missing-trait-bounds/issue-69725.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/missing-trait-bounds/issue-69725.rs')
-rw-r--r--tests/ui/missing-trait-bounds/issue-69725.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/missing-trait-bounds/issue-69725.rs b/tests/ui/missing-trait-bounds/issue-69725.rs
new file mode 100644
index 000000000..9c88969c5
--- /dev/null
+++ b/tests/ui/missing-trait-bounds/issue-69725.rs
@@ -0,0 +1,13 @@
+// run-rustfix
+// aux-build:issue-69725.rs
+#![allow(dead_code)]
+
+extern crate issue_69725;
+use issue_69725::Struct;
+
+fn crash<A>() {
+ let _ = Struct::<A>::new().clone();
+ //~^ ERROR: the method
+}
+
+fn main() {}