Crates.io | quine |
lib.rs | quine |
version | 0.1.0 |
source | src |
created_at | 2022-10-06 18:34:20.981507 |
updated_at | 2022-10-06 18:34:20.981507 |
description | quine |
homepage | |
repository | |
max_upload_size | |
id | 681534 |
size | 2,829 |
The output of running the program:
$ cargo run
fn main() {
let x = "fn main() {\n let x = ";
let y = "print!(\"{}{:?};\n let y = {:?};\n {}\", x, x, y, y)\n}\n";
print!("{}{:?};
let y = {:?};
{}", x, x, y, y)
}
is the same as the source of the program itself:
$ cat quine.rs
fn main() {
let x = "fn main() {\n let x = ";
let y = "print!(\"{}{:?};\n let y = {:?};\n {}\", x, x, y, y)\n}\n";
print!("{}{:?};
let y = {:?};
{}", x, x, y, y)
}