]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/inaccessible-test-modules.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[rust.git] / src / test / ui / test-attrs / 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 main as x; //~ ERROR unresolved import `main`
6 use test as y; //~ ERROR unresolved import `test`
7
8 #[test]
9 fn baz() {}