remove exclamation mark from string-program

This commit is contained in:
2022-06-28 15:45:26 +01:00
parent da24cc1f50
commit 0facc24fa7
7 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,4 @@
[package]
name = "refcell-program"
version = "0.1.0"
edition = "2021"

View File

@ -0,0 +1,9 @@
use std::cell::RefCell;
fn main() {
let refcell_str: RefCell<&str> = RefCell::new("hello");
println!("refcell_str");
let second = refcell_str.clone();
println!("refcell_str second:");
}