]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-doc-escapes.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / macros / macro-doc-escapes.rs
1 // run-pass
2 // When expanding a macro, documentation attributes (including documentation comments) must be
3 // passed "as is" without being parsed. Otherwise, some text will be incorrectly interpreted as
4 // escape sequences, leading to an ICE.
5 //
6 // Related issues: #25929, #25943
7
8 macro_rules! homura {
9     (#[$x:meta]) => ()
10 }
11
12 homura! {
13     /// \madoka \x41
14 }
15
16 fn main() { }