error: cannot find macro `m` in this scope
  --> $DIR/issue-40845.rs:1:11
   |
LL | trait T { m!(); }
   |           ^

error: cannot find macro `m` in this scope
  --> $DIR/issue-40845.rs:4:10
   |
LL | impl S { m!(); }
   |          ^

error: aborting due to 2 previous errors

