aboutsummaryrefslogtreecommitdiff
path: root/ui-tests/src/bin
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-24 19:30:32 +0100
committerMartin Fischer <martin@push-f.com>2021-11-24 19:37:33 +0100
commit73b1ca899858b7079bec54a6e4f29941cbb8d0bd (patch)
treeff30b195bf51b6e217fd81cdb0190fc3be8e07e4 /ui-tests/src/bin
parentdcf7a21372f22011a6081c26ade0a78fb2f10b5a (diff)
better error message for <Self as Foo>::X
Diffstat (limited to 'ui-tests/src/bin')
-rw-r--r--ui-tests/src/bin/qualified_self.rs10
-rw-r--r--ui-tests/src/bin/qualified_self.stderr5
2 files changed, 15 insertions, 0 deletions
diff --git a/ui-tests/src/bin/qualified_self.rs b/ui-tests/src/bin/qualified_self.rs
new file mode 100644
index 0000000..b02f623
--- /dev/null
+++ b/ui-tests/src/bin/qualified_self.rs
@@ -0,0 +1,10 @@
+trait Foo {
+ type X: Into<String>;
+}
+
+#[dynamize::dynamize]
+trait Bar: Foo {
+ fn test(&self) -> <Self as Foo>::X;
+}
+
+fn main() {}
diff --git a/ui-tests/src/bin/qualified_self.stderr b/ui-tests/src/bin/qualified_self.stderr
new file mode 100644
index 0000000..1b5f9f9
--- /dev/null
+++ b/ui-tests/src/bin/qualified_self.stderr
@@ -0,0 +1,5 @@
+error: dynamize does not support associated types of a qualified Self
+ --> src/bin/qualified_self.rs:7:24
+ |
+7 | fn test(&self) -> <Self as Foo>::X;
+ | ^^^^