aboutsummaryrefslogtreecommitdiff
path: root/ui-tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-22 06:51:13 +0100
committerMartin Fischer <martin@push-f.com>2021-11-22 07:31:20 +0100
commit7136160b97be8f87f79a4e3c819ab887cf8411aa (patch)
treede2b485099497e8fe5cffbd6653d62bfe33a63dc /ui-tests
parent83a77402456873adc278ba33cf3e03d5162bebd6 (diff)
add ui-test for unconvertible type
Diffstat (limited to 'ui-tests')
-rw-r--r--ui-tests/src/bin/unconvertible_type.rs10
-rw-r--r--ui-tests/src/bin/unconvertible_type.stderr5
2 files changed, 15 insertions, 0 deletions
diff --git a/ui-tests/src/bin/unconvertible_type.rs b/ui-tests/src/bin/unconvertible_type.rs
new file mode 100644
index 0000000..6fd68d4
--- /dev/null
+++ b/ui-tests/src/bin/unconvertible_type.rs
@@ -0,0 +1,10 @@
+type Foo<T> = Option<T>;
+
+#[dynamize::dynamize]
+trait Trait {
+ type A: std::error::Error;
+
+ fn a(&self) -> Option<Foo<Self::A>>;
+}
+
+fn main() {}
diff --git a/ui-tests/src/bin/unconvertible_type.stderr b/ui-tests/src/bin/unconvertible_type.stderr
new file mode 100644
index 0000000..462b939
--- /dev/null
+++ b/ui-tests/src/bin/unconvertible_type.stderr
@@ -0,0 +1,5 @@
+error: dynamize does not know how to convert this type
+ --> src/bin/unconvertible_type.rs:7:31
+ |
+7 | fn a(&self) -> Option<Foo<Self::A>>;
+ | ^^^^