rust/tests/ui/macros/macro-path-prelude-fail-1.rs

9 lines
219 B
Rust

mod m {
fn check() {
Vec::clone!(); //~ ERROR failed to resolve: `Vec` is a struct, not a module
u8::clone!(); //~ ERROR failed to resolve: `u8` is a builtin type, not a module
}
}
fn main() {}