mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
15 lines
237 B
Rust
15 lines
237 B
Rust
// Tests literals in attributes.
|
|
|
|
//@ pp-exact
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
fn main() {
|
|
#![rustc_dummy("hi", 1, 2, 1.012, pi = 3.14, bye, name("John"))]
|
|
#[rustc_dummy = 8]
|
|
fn f() {}
|
|
|
|
#[rustc_dummy(1, 2, 3)]
|
|
fn g() {}
|
|
}
|