rust/tests/ui/test-attrs/inaccessible-test-modules.rs
2024-02-16 20:02:50 +00:00

10 lines
266 B
Rust

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