diff options
Diffstat (limited to 'tests/ui/macros/macro_path_as_generic_bound.rs')
| -rw-r--r-- | tests/ui/macros/macro_path_as_generic_bound.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/macros/macro_path_as_generic_bound.rs b/tests/ui/macros/macro_path_as_generic_bound.rs new file mode 100644 index 00000000000..663f85688ec --- /dev/null +++ b/tests/ui/macros/macro_path_as_generic_bound.rs @@ -0,0 +1,9 @@ +trait Foo {} + +macro_rules! foo(($t:path) => { + impl<T: $t> Foo for T {} +}); + +foo!(m::m2::A); //~ ERROR failed to resolve + +fn main() {} |
