rust/tests/rustdoc/auxiliary/external-macro-src.rs
2023-01-11 09:32:08 +00:00

16 lines
297 B
Rust

// compile-flags:--remap-path-prefix={{src-base}}=/does-not-exist
#![doc(html_root_url = "https://example.com/")]
#[macro_export]
macro_rules! make_foo {
() => {
pub struct Foo;
impl Foo {
pub fn new() -> Foo {
Foo
}
}
}
}