Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
e0e7a432db38ac26355e7c60219c27720b9ec42f
rust/tests/ui/test-attrs/inaccessible-test-modules.rs

10 lines
266 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ compile-flags:--test
rustc: gensym the module names for --test to avoid introducing user-accessible names. This requires avoiding `quote_...!` for constructing the parts of the __test module, since that stringifies and reinterns the idents, losing the special gensym'd nature of them. (#15962.)
2014-07-25 10:01:42 +10:00
// the `--test` harness creates modules with these textual names, but
// they should be inaccessible from normal code.
Make use of hygiene in AST passes
2019-08-25 21:03:24 +01:00
use main as x; //~ ERROR unresolved import `main`
use test as y; //~ ERROR unresolved import `test`
rustc: gensym the module names for --test to avoid introducing user-accessible names. This requires avoiding `quote_...!` for constructing the parts of the __test module, since that stringifies and reinterns the idents, losing the special gensym'd nature of them. (#15962.)
2014-07-25 10:01:42 +10:00
#[test]
fn baz() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5352ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API