2016-08-19 20:58:14 -05:00
|
|
|
// Tests literals in attributes.
|
2015-02-09 13:01:45 -06:00
|
|
|
|
2019-06-08 03:36:43 -05:00
|
|
|
// pp-exact
|
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
2013-10-29 19:47:11 -05:00
|
|
|
|
2016-08-19 20:58:14 -05:00
|
|
|
fn main() {
|
2019-08-25 12:41:52 -05:00
|
|
|
#![rustc_dummy("hi", 1, 2, 1.012, pi = 3.14, bye, name ("John"))]
|
2019-06-08 03:36:43 -05:00
|
|
|
#[rustc_dummy = 8]
|
2016-08-19 20:58:14 -05:00
|
|
|
fn f() { }
|
|
|
|
|
2019-08-25 12:41:52 -05:00
|
|
|
#[rustc_dummy(1, 2, 3)]
|
2016-08-19 20:58:14 -05:00
|
|
|
fn g() { }
|
|
|
|
}
|