]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/inaccessible-test-modules.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' 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() {}