mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
22 lines
224 B
Rust
22 lines
224 B
Rust
//@ check-pass
|
|
// Issue #17436
|
|
|
|
|
|
mod bleh {
|
|
macro_rules! foo {
|
|
() => {
|
|
pub fn bar(&self) { }
|
|
}
|
|
}
|
|
|
|
pub struct S;
|
|
|
|
impl S {
|
|
foo!();
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
bleh::S.bar();
|
|
}
|