You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tmp.rs:3:5: 3:18 error: mismatched types: expected `&collections::string::String`, found `collections::string::String` (expected &-ptr, found struct collections::string::String)
tmp.rs:3 s: &'a String,
^~~~~~~~~~~~~
note: in expansion of #[deriving]
tmp.rs:1:1: 1:19 note: expansion site
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
stepancheg
changed the title
deriving(Clone) doesn't work for structs with borrowed pointers
#[deriving(Clone)] doesn't work for structs with borrowed pointers
Oct 28, 2014
Code:
Compiler produces the message:
The text was updated successfully, but these errors were encountered: