2020-08-15 11:58:33 +03:00
|
|
|
import test-import.( // local import
|
2020-06-30 03:47:23 +03:00
|
|
|
Point,
|
|
|
|
foo,
|
|
|
|
);
|
|
|
|
|
|
|
|
import bar.( // imports directory import
|
|
|
|
Bar,
|
|
|
|
baz.Baz,
|
|
|
|
bat.bat.Bat,
|
|
|
|
);
|
|
|
|
|
|
|
|
import car.Car; // imports directory import
|
|
|
|
|
2020-07-30 23:01:04 +03:00
|
|
|
function main() {
|
2020-07-02 15:48:43 +03:00
|
|
|
const point = Point { x: 1u32, y: 1u32 };
|
|
|
|
const foo = foo();
|
2020-06-30 03:47:23 +03:00
|
|
|
|
|
|
|
const bar = Bar { r: 1u32 };
|
|
|
|
const baz = Baz { z: 1u32 };
|
2020-07-02 15:48:43 +03:00
|
|
|
const bat = Bat { t: 1u32 };
|
2020-06-30 03:47:23 +03:00
|
|
|
|
|
|
|
const car = Car { c: 1u32 };
|
|
|
|
|
2020-07-30 23:01:04 +03:00
|
|
|
assert_eq!(car.c, 1u32);
|
2020-06-30 03:47:23 +03:00
|
|
|
}
|