2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2015-02-13 20:52:33 +00:00
|
|
|
// Issue #17436
|
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2015-02-13 20:52:33 +00:00
|
|
|
mod bleh {
|
|
|
|
macro_rules! foo {
|
|
|
|
() => {
|
|
|
|
pub fn bar(&self) { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
foo!();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
bleh::S.bar();
|
|
|
|
}
|