now, the stringify is fine if my pattern is not a tuple (eg: Test1), however it will print the arguments if i call it with a tuple (eg: Test2(_)). Is there a way to get only the type out of a pat in a macro ? It would even be better if it doesn't print the path like: Test::Test1 and instead print onlyTest1.
Also, with the structure of your macro, you can't invoke Into<&str> on $to_be, because $to_be is a pattern, not a type. Unfortunately, if you provide $to_be as a type (ty) instead, your macro will fail. Some($to_be) won't work, because it expects a pattern.