rust/src/test/ui/inaccessible-test-modules.rs
2018-12-25 21:08:33 -07:00

10 lines
293 B
Rust

// compile-flags:--test
// the `--test` harness creates modules with these textual names, but
// they should be inaccessible from normal code.
use __test as x; //~ ERROR unresolved import `__test`
use __test_reexports as y; //~ ERROR unresolved import `__test_reexports`
#[test]
fn baz() {}