rust/src/test/pretty/alt-naked-expr-long.rs

17 lines
419 B
Rust
Raw Normal View History

// pretty-exact
// actually this doesn't quite look how I want it to, but I can't
// get the prettyprinter to indent the long expr
fn main() {
2012-08-20 14:23:37 -05:00
let x = Some(3);
let y =
2012-08-06 14:34:08 -05:00
match x {
2012-08-20 14:23:37 -05:00
Some(_) =>
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
2012-08-20 14:23:37 -05:00
None => ~"none"
};
assert y == ~"some(_)";
}