mirror of https://github.com/rust-lang/rust.git
Make tests a little more friendly to combine.
This commit is contained in:
parent
b18cefdfd7
commit
750dcc05e4
|
@ -6,4 +6,4 @@ mod m1 {
|
||||||
|
|
||||||
fn bar(m1::foo x) { alt (x) { case (m1::foo1) { } } }
|
fn bar(m1::foo x) { alt (x) { case (m1::foo1) { } } }
|
||||||
|
|
||||||
fn main(vec[str] args) { }
|
fn main() { }
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
export foo;
|
export foo;
|
||||||
|
export main;
|
||||||
|
|
||||||
tag list_cell[T] { cons(@list_cell[T]); }
|
tag list_cell[T] { cons(@list_cell[T]); }
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,10 @@ mod foo {
|
||||||
mod bar {
|
mod bar {
|
||||||
import foo::x;
|
import foo::x;
|
||||||
import z = foo::x;
|
import z = foo::x;
|
||||||
fn main() {
|
fn thing() {
|
||||||
x(10);
|
x(10);
|
||||||
z(10);
|
z(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn main() { bar::thing(); }
|
|
@ -5,4 +5,4 @@ mod zed {
|
||||||
fn bar() { log "bar"; }
|
fn bar() { log "bar"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main(vec[str] args) { bar(); }
|
fn main() { bar(); }
|
|
@ -8,4 +8,4 @@ mod baz {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main(vec[str] args) { bar(); }
|
fn main() { bar(); }
|
|
@ -11,6 +11,6 @@ mod bar {
|
||||||
import zed::baz;
|
import zed::baz;
|
||||||
export baz;
|
export baz;
|
||||||
}
|
}
|
||||||
fn main(vec[str] args) {
|
fn main() {
|
||||||
baz();
|
baz();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue