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