auto merge of #4832 : sanxiyn/rust/pretty-exact, r=graydon
This commit is contained in:
commit
a2817953d0
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
// actually this doesn't quite look how I want it to, but I can't
|
||||
// get the prettyprinter to indent the long expr
|
||||
@ -18,8 +18,8 @@ fn main() {
|
||||
let y =
|
||||
match x {
|
||||
Some(_) =>
|
||||
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" +
|
||||
~"very" + ~"very" + ~"very" + ~"long" + ~"string",
|
||||
~"some" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very" + ~"very"
|
||||
+ ~"very" + ~"very" + ~"long" + ~"string",
|
||||
None => ~"none"
|
||||
};
|
||||
assert y == ~"some(_)";
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn main() {
|
||||
let x = Some(3);
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn main() {
|
||||
let x = Some(3);
|
||||
|
@ -8,10 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pretty-exact
|
||||
// pp-exact
|
||||
|
||||
fn f(f: fn@(int)) { f(10) }
|
||||
fn f(f: @fn(int)) { f(10) }
|
||||
|
||||
fn main() {
|
||||
do f |i| { assert i == 10 }
|
||||
}
|
||||
fn main() { do f |i| { assert i == 10 } }
|
||||
|
Loading…
Reference in New Issue
Block a user