We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 800e0d6 commit e1629a5Copy full SHA for e1629a5
1 file changed
intmut/src/lib.rs
@@ -12,6 +12,10 @@ pub fn intmut() {
12
13
let a = Rc::new(Cons(Rc::clone(&value), Rc::new(Nil)));
14
println!("a before = {a:?}");
15
+ match *a {
16
+ Cons(ref v, ref tail) => println!("a value = {v:?}, tail = {tail:?}"),
17
+ Nil => println!("a is Nil"),
18
+ }
19
20
let b = Cons(Rc::new(RefCell::new(3)), Rc::clone(&a));
21
let c = Cons(Rc::new(RefCell::new(4)), Rc::clone(&a));
0 commit comments