Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 549 Bytes
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
// aux-build:test-macros.rs
// Anonymize unstable non-dummy spans while still showing dummy spans `0..0`.
// normalize-stdout-test "bytes\([^0]\w*\.\.(\w+)\)" -> "bytes(LO..$1)"
// normalize-stdout-test "bytes\((\w+)\.\.[^0]\w*\)" -> "bytes($1..HI)"
#[macro_use]
extern crate test_macros;
type S = u8;
macro_rules! m {
() => {
print_bang! {
struct M($crate::S);
}
#[print_attr]
struct A($crate::S);
};
}
m!();
fn main() {}
You can’t perform that action at this time.