]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inaccessible-test-modules.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / inaccessible-test-modules.rs
1 // compile-flags:--test
2
3 // the `--test` harness creates modules with these textual names, but
4 // they should be inaccessible from normal code.
5 use __test as x; //~ ERROR unresolved import `__test`
6 use __test_reexports as y; //~ ERROR unresolved import `__test_reexports`
7
8 #[test]
9 fn baz() {}