mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-24 00:13:26 +00:00
10 lines
265 B
Rust
10 lines
265 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() {}
|