2012-07-10 12:37:05 -05:00
|
|
|
// 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);
|
2012-07-10 12:37:05 -05:00
|
|
|
let y =
|
2012-08-06 14:34:08 -05:00
|
|
|
match x {
|
2012-08-20 14:23:37 -05:00
|
|
|
Some(_) =>
|
2012-07-31 15:43:20 -05:00
|
|
|
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
|
|
|
|
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
|
2012-08-20 14:23:37 -05:00
|
|
|
None => ~"none"
|
2012-07-10 12:37:05 -05:00
|
|
|
};
|
2012-07-31 15:43:20 -05:00
|
|
|
assert y == ~"some(_)";
|
2012-07-10 12:37:05 -05:00
|
|
|
}
|