]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-doc-escapes.rs
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
[rust.git] / tests / 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() { }