3 ms·
Oh that's cool, and makes sense. Is it possible to perform type widening on enums? Or must they match precisely? For example, what happens if I attempt the belo
by andyferris 3y ago
Oh that's cool, and makes sense. Is it possible to perform type widening on enums? Or must they match precisely? For example, what happens if I attempt the below?
```
enum Option<T> {Some(T), Nothing};
let opt1 = enum {Some(Int)} of Some(5);
let opt2: Option<Int> = opt1;
```