blob: 2bdf5fc17b14dcc4d7c48aab9b03d3e9171518e2 [file]
macro_rules! dot {
($id:ident) => {
().$id();
}
}
macro_rules! dispatch {
($id:ident) => {
<()>::$id();
}
}
fn main() {
dot!(hello);
//~^ ERROR no method named `hello` found for unit type `()` in the current scope
dispatch!(hello);
//~^ ERROR no associated function or constant named `hello` found for unit type `()` in the current scope
}