summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro_path_as_generic_bound.rs
blob: 663f85688ec9a1c95443c77a60e9a24473afe266 (plain)
1
2
3
4
5
6
7
8
9
trait Foo {}

macro_rules! foo(($t:path) => {
    impl<T: $t> Foo for T {}
});

foo!(m::m2::A); //~ ERROR failed to resolve

fn main() {}