Skip to content
Snippets Groups Projects
Commit 12abed20 authored by Per Lindgren's avatar Per Lindgren
Browse files

a small experiment on box

parent dd05d7ce
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment