error[E0433]: failed to resolve: use of undeclared crate or module `m` --> $DIR/macro_path_as_generic_bound.rs:7:6 | LL | foo!(m::m2::A); | ^ use of undeclared crate or module `m` error: aborting due to previous error For more information about this error, try `rustc --explain E0433`.