Files
rust/tests/run-make/rustdoc-scrape-examples-macros/src/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
421 B
Rust
Raw Normal View History

// Scraped example should only include line numbers for items b and c in ex.rs
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '14'
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '15'
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '21'
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '22'
pub fn f() {}
#[macro_export]
macro_rules! a_rules_macro {
($e:expr) => {
($e, foobar::f());
};
}