2017-03-04 11:46:14 +09:00
|
|
|
const X: i32 = #[allow(dead_code)] 8;
|
2019-04-10 16:40:12 -07:00
|
|
|
//~^ ERROR attributes on expressions are experimental
|
2017-03-04 11:46:14 +09:00
|
|
|
|
2024-04-11 16:11:14 +00:00
|
|
|
const Y: i32 =
|
|
|
|
/// foo
|
|
|
|
//~^ ERROR attributes on expressions are experimental
|
|
|
|
8;
|
|
|
|
|
|
|
|
const Z: i32 = {
|
|
|
|
//! foo
|
|
|
|
//~^ ERROR attributes on expressions are experimental
|
|
|
|
8
|
|
|
|
};
|
|
|
|
|
2017-03-04 11:46:14 +09:00
|
|
|
fn main() {}
|