You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
173 B

enum List {
Cons(i32, List),
Nil,
}
// ANCHOR: here
use crate::List::{Cons, Nil};
fn main() {
let list = Cons(1, Cons(2, Cons(3, Nil)));
}
// ANCHOR_END: here