mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
288 B
Rust
16 lines
288 B
Rust
const X: i32 = #[allow(dead_code)] 8;
|
|
//~^ ERROR attributes on expressions are experimental
|
|
|
|
const Y: i32 =
|
|
/// foo
|
|
//~^ ERROR attributes on expressions are experimental
|
|
8;
|
|
|
|
const Z: i32 = {
|
|
//! foo
|
|
//~^ ERROR attributes on expressions are experimental
|
|
8
|
|
};
|
|
|
|
fn main() {}
|