mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
14 lines
215 B
Rust
14 lines
215 B
Rust
// gate-test-const_closures
|
|
|
|
fn main() {
|
|
(const || {})();
|
|
//~^ ERROR: const closures are experimental
|
|
}
|
|
|
|
macro_rules! e {
|
|
($e:expr) => {}
|
|
}
|
|
|
|
e!((const || {}));
|
|
//~^ ERROR const closures are experimental
|