String
Since string is a wrapper over Vec the same behaviour happens here.
String literal
Current version of aquascope cannot render string literal so we have to check the pointer.
fn main(){ let a = "aaaa"; let b = a; println!("a_ptr = {:?}", a.as_ptr()); println!("b_ptr = {:?}", b.as_ptr()); println!("{}", a); println!("{}", b); }