]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/hir-res-hygiene.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / hir-res-hygiene.rs
1 // check-pass
2 // edition:2018
3 // aux-build:not-libstd.rs
4
5 // Check that paths created in HIR are not affected by in scope names.
6
7 extern crate not_libstd as std;
8
9 async fn the_future() {
10     async {}.await;
11 }
12
13 fn main() -> Result<(), ()> {
14     for i in 0..10 {}
15     for j in 0..=10 {}
16     Ok(())?;
17     Ok(())
18 }