mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
41e4a3e086
This gives better output for code produced by proc macros.
49 lines
1.3 KiB
Rust
49 lines
1.3 KiB
Rust
// pp-exact
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
macro_rules! mac { ($($tt : tt) *) => () }
|
|
|
|
mac! {
|
|
struct S { field1 : u8, field2 : u16, } impl Clone for S
|
|
{
|
|
fn clone() -> S
|
|
{
|
|
panic! ();
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
mac! {
|
|
a(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa) a
|
|
[aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa] a
|
|
{
|
|
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa aaaaaaaa
|
|
} a
|
|
}
|
|
|
|
mac!(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa);
|
|
mac![aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa];
|
|
mac! {
|
|
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa
|
|
}
|
|
|
|
#[rustc_dummy(aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa aaaaaaaa)]
|
|
#[rustc_dummy[aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa aaaaaaaa]]
|
|
#[rustc_dummy {
|
|
aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa
|
|
aaaaaaaa aaaaaaaa
|
|
}]
|
|
#[rustc_dummy =
|
|
"aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa aaaaaaaa"]
|
|
fn main() {}
|