pretty-print: Do not lose the $crate
printing flag in print_tt
This commit is contained in:
parent
69070058cd
commit
da50d59881
6 changed files with 29 additions and 11 deletions
10
src/test/ui/macros/auxiliary/dollar-crate-nested-encoding.rs
Normal file
10
src/test/ui/macros/auxiliary/dollar-crate-nested-encoding.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
pub type S = u8;
|
||||
|
||||
macro_rules! generate_exported { () => {
|
||||
#[macro_export]
|
||||
macro_rules! exported {
|
||||
() => ($crate::S)
|
||||
}
|
||||
}}
|
||||
|
||||
generate_exported!();
|
Loading…
Add table
Add a link
Reference in a new issue