aboutsummaryrefslogtreecommitdiff
path: root/ui-tests/src/bin/attr_convert_unused.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-26 10:27:50 +0100
committerMartin Fischer <martin@push-f.com>2021-11-26 11:45:53 +0100
commitd37cf6a72e633afb10ec78bdbeec6631d601adfe (patch)
tree1db3a4b735382c65c0feed07a3328cdd059c4bd5 /ui-tests/src/bin/attr_convert_unused.rs
parent7489a3c2246e7ea2483446dd2ed3fdbfaf462c1a (diff)
return error for unused #[convert]s
Diffstat (limited to 'ui-tests/src/bin/attr_convert_unused.rs')
-rw-r--r--ui-tests/src/bin/attr_convert_unused.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui-tests/src/bin/attr_convert_unused.rs b/ui-tests/src/bin/attr_convert_unused.rs
new file mode 100644
index 0000000..b7ee474
--- /dev/null
+++ b/ui-tests/src/bin/attr_convert_unused.rs
@@ -0,0 +1,7 @@
+#[dynamize::dynamize]
+#[convert = |x: Foo| -> Bar {x.baz()}]
+trait Trait {
+ fn test(&self);
+}
+
+fn main() {}