From 12abed208b6f5d552edfcbedc0f77eae6d801314 Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Tue, 15 Sep 2020 15:27:29 +0200
Subject: [PATCH] a small experiment on box

---
 src/ast/ast.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ast/ast.rs b/src/ast/ast.rs
index 65e3c6b..c0a361a 100644
--- a/src/ast/ast.rs
+++ b/src/ast/ast.rs
@@ -26,6 +26,10 @@ fn check(t: Type) {
     }
 }
 
+// This requires unstable (nightly) feature
+// and won't compile using the stable toolchain
+//
+// Please use `check` instead for matching boxed values
 fn check2(t: Type) {
     use Type::*;
     match t {
-- 
GitLab