16 lines
168 B
Rust
16 lines
168 B
Rust
// xfail-stage0
|
|
// error-pattern: unknown module item
|
|
mod foo {
|
|
export x;
|
|
fn x(int y) {
|
|
log y;
|
|
}
|
|
fn z(int y) {
|
|
log y;
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
foo.z(10);
|
|
}
|