2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-02-13 12:52:33 -08:00
|
|
|
// Issue #17436
|
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-02-13 12:52:33 -08:00
|
|
|
mod bleh {
|
|
|
|
|
macro_rules! foo {
|
|
|
|
|
() => {
|
|
|
|
|
pub fn bar(&self) { }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
|
foo!();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
bleh::S.bar();
|
|
|
|
|
}
|