Commit Graph

2 Commits

Author SHA1 Message Date
Felix S. Klock II
f043d2da65 Revise test slightly so that dyn in macro invocation *must* be parsed as keyword in test.
Back-story: After reflection this morning, I realized that the
previous form of this test would allow the macro invocation to treat
the `dyn` input as a raw-identifier rather than a keyword, and since
the input was discarded by that version of the macro, the test would
pass despite the detail that the input `dyn` should not have been
parsed as a raw-identifier.

This revision fixes that oversight, by actually *using* the macro
input to construct a `Box<dyn Trait>` type.
2019-03-28 12:49:50 +01:00
Felix S. Klock II
6d7e5df3d9 Some tests illustrating where the revised lint does and does not apply. 2019-03-27 17:13:51 +01:00