aboutsummaryrefslogtreecommitdiff
path: root/ui-tests/src/bin/attr_convert_duplicate.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-25 10:30:54 +0100
committerMartin Fischer <martin@push-f.com>2021-11-26 11:45:53 +0100
commit7489a3c2246e7ea2483446dd2ed3fdbfaf462c1a (patch)
treefc2670f56f7cc16567eb10d88f9439abb9098298 /ui-tests/src/bin/attr_convert_duplicate.rs
parent43950edc4f26a07055fb917fa8bbb262276e2a08 (diff)
introduce #[convert] attribute
Diffstat (limited to 'ui-tests/src/bin/attr_convert_duplicate.rs')
-rw-r--r--ui-tests/src/bin/attr_convert_duplicate.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui-tests/src/bin/attr_convert_duplicate.rs b/ui-tests/src/bin/attr_convert_duplicate.rs
new file mode 100644
index 0000000..b074d81
--- /dev/null
+++ b/ui-tests/src/bin/attr_convert_duplicate.rs
@@ -0,0 +1,8 @@
+#[dynamize::dynamize]
+#[convert = |x: Foo| -> Bar {x.baz()}]
+#[convert = |x: Foo| -> Bar {x.baz()}]
+trait Trait {
+ fn test(&self) -> Foo;
+}
+
+fn main() {}