rust/tests/ui/macros/macro_path_as_generic_bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
138 B
Rust
Raw Normal View History

trait Foo {}
macro_rules! foo(($t:path) => {
impl<T: $t> Foo for T {}
});
2017-11-20 06:13:27 -06:00
foo!(m::m2::A); //~ ERROR failed to resolve
fn main() {}