diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-22 14:25:40 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-22 14:27:28 +0100 |
commit | 01dfd7846a11715a643e3263a1c2bc3a123e3c17 (patch) | |
tree | 9d7a4a0e358acacc35b3ab76925a869b9e44dd11 /ui-tests/src | |
parent | 60132008eebcbaf1d9891ced24be1cfc1f098ecc (diff) |
add ui-tests for attributes
Diffstat (limited to 'ui-tests/src')
-rw-r--r-- | ui-tests/src/bin/attr_blanket_impl_attr.rs | 5 | ||||
-rw-r--r-- | ui-tests/src/bin/attr_blanket_impl_attr.stderr | 5 | ||||
-rw-r--r-- | ui-tests/src/bin/attr_dyn_trait_attr.rs | 5 | ||||
-rw-r--r-- | ui-tests/src/bin/attr_dyn_trait_attr.stderr | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/ui-tests/src/bin/attr_blanket_impl_attr.rs b/ui-tests/src/bin/attr_blanket_impl_attr.rs new file mode 100644 index 0000000..c6b48eb --- /dev/null +++ b/ui-tests/src/bin/attr_blanket_impl_attr.rs @@ -0,0 +1,5 @@ +#[dynamize::dynamize] +#[blanket_impl_attr = async_trait] +trait Trait {} + +fn main() {} diff --git a/ui-tests/src/bin/attr_blanket_impl_attr.stderr b/ui-tests/src/bin/attr_blanket_impl_attr.stderr new file mode 100644 index 0000000..8d81d81 --- /dev/null +++ b/ui-tests/src/bin/attr_blanket_impl_attr.stderr @@ -0,0 +1,5 @@ +error: expected parenthesis: #[blanket_impl_attr(...)] + --> src/bin/attr_blanket_impl_attr.rs:2:21 + | +2 | #[blanket_impl_attr = async_trait] + | ^ diff --git a/ui-tests/src/bin/attr_dyn_trait_attr.rs b/ui-tests/src/bin/attr_dyn_trait_attr.rs new file mode 100644 index 0000000..f207ba8 --- /dev/null +++ b/ui-tests/src/bin/attr_dyn_trait_attr.rs @@ -0,0 +1,5 @@ +#[dynamize::dynamize] +#[dyn_trait_attr = async_trait] +trait Trait {} + +fn main() {} diff --git a/ui-tests/src/bin/attr_dyn_trait_attr.stderr b/ui-tests/src/bin/attr_dyn_trait_attr.stderr new file mode 100644 index 0000000..9a428d9 --- /dev/null +++ b/ui-tests/src/bin/attr_dyn_trait_attr.stderr @@ -0,0 +1,5 @@ +error: expected parenthesis: #[dyn_trait_attr(...)] + --> src/bin/attr_dyn_trait_attr.rs:2:18 + | +2 | #[dyn_trait_attr = async_trait] + | ^ |