rust/tests/ui/macros/macro_path_as_generic_bound.rs
2023-01-11 09:32:08 +00:00

10 lines
138 B
Rust

trait Foo {}
macro_rules! foo(($t:path) => {
impl<T: $t> Foo for T {}
});
foo!(m::m2::A); //~ ERROR failed to resolve
fn main() {}