summary refs log tree commit diff
path: root/src/test/ui/inaccessible-test-modules.rs
blob: 7095ec290f8f28a02ee2413b0172fdc4aa17fde9 (plain)
1
2
3
4
5
6
7
8
9
// 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() {}