2012-07-10 10:37:05 -07: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() {
|
|
|
|
let x = some(3);
|
|
|
|
let y =
|
|
|
|
alt x {
|
|
|
|
some(_) =>
|
2012-07-31 13:43:20 -07:00
|
|
|
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
|
|
|
|
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
|
|
|
|
none => ~"none"
|
2012-07-10 10:37:05 -07:00
|
|
|
};
|
2012-07-31 13:43:20 -07:00
|
|
|
assert y == ~"some(_)";
|
2012-07-10 10:37:05 -07:00
|
|
|
}
|