This commit is contained in:
Crispy 2024-08-11 17:25:11 +02:00
commit 7e02b91ca3
3 changed files with 12 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/target
Cargo.lock

8
Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[package]
name = "quine"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

2
src/main.rs Normal file
View file

@ -0,0 +1,2 @@
fn main(){let s="fn main(){let s=@;print!(\"{}\",s.replacen('@',&format!(\"{s:?}\"),1))}";print!("{}",s.replacen('@',&format!("{s:?}"),1))}
// fn main(){let s="fn main(){let s=@;print!(\"{}\",s.replacen('@',&format!(\"{s:?}\"),1))}";print!("{}",s.replacen('@',&format!("{s:?}"),1))}