This website requires JavaScript.
Explore
Help
Sign In
3025014
/
PR3-Rust-SS26
Watch
1
Star
1
Fork
You've already forked PR3-Rust-SS26
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
main
PR3-Rust-SS26
/
D-ownership
/
example-code
/
02-ownership
/
memory-leak.rs
7 lines
98 B
Rust
Raw
Permalink
Blame
History
fn
main
(
)
{
let
s1
=
String
::
from
(
"
hello
"
)
;
let
s2
=
s1
;
println!
(
"
{s1}
, world!
"
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink