aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/no-attribute-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/no-attribute-macro.rs')
-rw-r--r--tests/ui/no-attribute-macro.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/no-attribute-macro.rs b/tests/ui/no-attribute-macro.rs
new file mode 100644
index 0000000..c0fb431
--- /dev/null
+++ b/tests/ui/no-attribute-macro.rs
@@ -0,0 +1,13 @@
+pub trait Trait {
+ async fn method(&self);
+}
+
+pub struct Struct;
+
+impl Trait for Struct {
+ async fn method(&self) {}
+}
+
+fn main() {
+ let _: &dyn Trait;
+}