Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sapiogram
· 1y ago · 0 comments
Copy is already banned for any type that directly or indirectly contains a non-Copy type, and Vec contains a `*const T`, which is not Copy.
Comments
[–]
School-Cotton
1y ago
const T is Copy, actually.
https://doc.rust-lang.org/std/primitive.pointer.html#impl-Co...