#rustlang TIL that `dbg!(x)` is not the same as `println!("{:?}", x)` because dbg! takes ownership of x, while println! implicitly borrows instead. The equivalent to the println! is actually `dbg!(&x)`https://github.com/rust-lang/rust/issues/59943 …
-
-
Replying to @Carols10cents @rustlang
Which is good so you can put it around expressions. It returns its argument.
1 reply 0 retweets 4 likes
Replying to @mitsuhiko @rustlang
I understand why, that doesn't mean it wasn't surprising
1:02 PM - 15 Jan 2020
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.