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
0e3ee39c41462652f41993a5610265abea6daa96
rust/src/test/compile-fail/import-loop-2.rs

16 lines
142 B
Rust
Raw Normal View History

Fix mistaken replacements in error-pattern comments in tests
2011-05-12 21:45:29 +02:00
// error-pattern:cyclic import
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
mod a {
Downcase std modules again, move to :: for module dereferencing This should be a snapshot transition.
2011-05-12 17:24:54 +02:00
import b::x;
Now imports are not re-exported unless 'export' is explicitly used.
2011-05-31 18:24:06 -07:00
export x;
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
}
mod b {
Downcase std modules again, move to :: for module dereferencing This should be a snapshot transition.
2011-05-12 17:24:54 +02:00
import a::x;
Now imports are not re-exported unless 'export' is explicitly used.
2011-05-31 18:24:06 -07:00
export x;
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
fn main() {
auto y = x;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 271ms 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