Re:The struggle with Rust
by dbaupp on Tuesday January 24, 2017 @02:52PM
(#13474840)
(*const is not valid syntax: the way to not-borrow something is to coerce/cast it to an unsafe pointer within the statement, so that the borrow ends at the ;, e.g. give x an explicit raw pointer type in the first example.)
[ Parent
| on HN ]
Re:The struggle with Rust
by steveklabnik on Tuesday January 24, 2017 @03:09PM
(#13474994)
gah, i always mess this up, haha