rust/src/test/run-pass/option-ext.rs

9 lines
142 B
Rust

fn main() {
let thing = ~"{{ f }}";
let f = str::find_str(thing, ~"{{");
if f.is_none() {
io::println(~"None!");
}
}