diff options
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs')
-rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs new file mode 100644 index 000000000..d1c93ab9f --- /dev/null +++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/gate.rs @@ -0,0 +1,13 @@ +// gate-test-const_closures + +fn main() { + (const || {})(); + //~^ ERROR: const closures are experimental +} + +macro_rules! e { + ($e:expr) => {} +} + +e!((const || {})); +//~^ ERROR const closures are experimental |