blob: e23826e9d4ef604f62f919920528eefda374bdd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#![feature(decl_macro)]
mod foo {
pub macro m() { Vec::<i32>::new(); ().clone() }
fn f() { ::bar::m!(); }
}
#[no_implicit_prelude]
mod bar {
pub macro m() {
Vec::new(); //~ ERROR failed to resolve
().clone() //~ ERROR no method named `clone` found
}
fn f() {
::foo::m!();
assert!(true);
}
}
fn main() {}
|