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

14 lines
119 B
Rust
Raw Normal View History

Downcase std modules again, move to :: for module dereferencing This should be a snapshot transition.
2011-05-12 17:24:54 +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;
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;
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: 252ms Template: 6ms
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