rust/tests/ui/traits/const-traits/gate.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

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