This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(core_intrinsics)] | |
// This requires unstable features to compile so we can print out the type names. The type | |
// arithmetic itself works fine on stable. | |
use std::marker::PhantomData; | |
enum Zero {} | |
enum Succ<T> { | |
Succ(PhantomData<T>), // only required to satisfy the compiler |