mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
15 lines
197 B
Rust
15 lines
197 B
Rust
//@ check-fail
|
|
|
|
#![feature(const_block_items)]
|
|
|
|
macro_rules! foo {
|
|
($item:item) => {
|
|
$item
|
|
//~^ ERROR: expected expression, found ``
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
foo!(const {});
|
|
}
|