diff options
Diffstat (limited to 'tests/ui/hygiene/hir-res-hygiene.rs')
-rw-r--r-- | tests/ui/hygiene/hir-res-hygiene.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/hygiene/hir-res-hygiene.rs b/tests/ui/hygiene/hir-res-hygiene.rs new file mode 100644 index 000000000..c26cf5fdb --- /dev/null +++ b/tests/ui/hygiene/hir-res-hygiene.rs @@ -0,0 +1,18 @@ +// check-pass +// edition:2018 +// aux-build:not-libstd.rs + +// Check that paths created in HIR are not affected by in scope names. + +extern crate not_libstd as std; + +async fn the_future() { + async {}.await; +} + +fn main() -> Result<(), ()> { + for i in 0..10 {} + for j in 0..=10 {} + Ok(())?; + Ok(()) +} |