about summary refs log tree commit diff
path: root/tests/ui/proc-macro/pretty-print-tts.rs
blob: b1b4f278e2a3af66fbbd1087c2ac94f5a4ba0537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ check-pass
//@ proc-macro: test-macros.rs
//@ compile-flags: -Z span-debug

#![feature(rustc_attrs)]

#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;

#[macro_use]
extern crate test_macros;

// Tests the pretty-printing behavior of various (unparsed) tokens
print_bang_consume!({
    #![rustc_dummy]
    let a = "hello".len();
    matches!(a, 5);
});

fn main() {}