Anonymous user
Narcissist: Difference between revisions
→{{header|Rust}}
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix code and comment: Perl 6 --> Raku) |
|||
Line 476:
<pre>$ ruby narcissist.rb < narcissist.rb
accept</pre>
=={{header|Rust}}==
<lang rust>use std::io::{stdin, prelude::*};
fn main() {
let src = include_str!("main.rs");
let mut input = String::new();
stdin()
.lock()
.read_to_string(&mut input)
.expect("Could not read from STDIN");
println!("{}", src == input);
}</lang>
=={{header|Scala}}==
|