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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/imports/import-loop-2.rs

12 lines
157 B
Rust
Raw Normal View History

Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
mod a {
Use non-2015 edition paths in tests that do not test for their resolution This allows for testing these tests on editions other than 2015
2025-06-02 10:11:10 +02:00
pub use crate::b::x;
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
}
mod b {
Use non-2015 edition paths in tests that do not test for their resolution This allows for testing these tests on editions other than 2015
2025-06-02 10:11:10 +02:00
pub use crate::a::x; //~ ERROR unresolved import `crate::a::x`
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
Reformat for new syntax
2011-07-27 14:19:39 +02:00
fn main() { let y = x; }
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
}
cleanup: Add main functions to some UI tests
2018-08-23 02:19:38 +03:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5842ms Template: 4ms
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