]> git.lizzy.rs Git - rust.git/blob - tests/pretty/attr-literals.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / pretty / attr-literals.rs
1 // Tests literals in attributes.
2
3 // pp-exact
4
5 #![feature(rustc_attrs)]
6
7 fn main() {
8     #![rustc_dummy("hi", 1, 2, 1.012, pi = 3.14, bye, name("John"))]
9     #[rustc_dummy = 8]
10     fn f() {}
11
12     #[rustc_dummy(1, 2, 3)]
13     fn g() {}
14 }