summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/issues/issue-61525.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/methods/issues/issue-61525.rs')
-rw-r--r--tests/ui/methods/issues/issue-61525.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/methods/issues/issue-61525.rs b/tests/ui/methods/issues/issue-61525.rs
new file mode 100644
index 000000000..c5ca0326e
--- /dev/null
+++ b/tests/ui/methods/issues/issue-61525.rs
@@ -0,0 +1,20 @@
+pub trait Example {
+ fn query<Q>(self, q: Q);
+}
+
+impl Example for i32 {
+ fn query<Q>(self, _: Q) {
+ unimplemented!()
+ }
+}
+
+mod nested {
+ use super::Example;
+ fn example() {
+ 1.query::<dyn ToString>("")
+ //~^ ERROR the size for values of type `dyn ToString` cannot be known at compilation time
+ //~| ERROR mismatched types
+ }
+}
+
+fn main() {}