This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
8152da82b51a16fbb7a072462af01d15b0b2c8d3
rust
/
tests
/
ui
/
imports
/
import-loop.rs
10 lines
80 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ error-pattern:import
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
test: "import" -> "use"
2012-09-05 12:32:05 -07:00
use
y
::
x
;
Stop showing a 'cyclic import' message for unresolved imports This only happened for single-length import paths, because the import was being looked up in its own scope.
2011-05-24 20:58:38 +02:00
mod
y
{
test: De-export aux, bench, compile-fail, and run-fail. rs=deexporting
2013-01-30 14:30:22 -08:00
pub
use
y
::
x
;
Stop showing a 'cyclic import' message for unresolved imports This only happened for single-length import paths, because the import was being looked up in its own scope.
2011-05-24 20:58:38 +02:00
}
Catch cyclic imports harder. Add 2 tests to confirm.
2010-07-09 11:59:00 -07:00
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
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink