recursive list definition - compiling
This commit is contained in:
parent
c413e9b922
commit
137686f79a
1 changed files with 1 additions and 1 deletions
|
|
@ -4,5 +4,5 @@ fn main() {
|
|||
|
||||
pub enum List {
|
||||
Empty,
|
||||
Elem(i32, List),
|
||||
Elem(i32, Box<List>),
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue