2020-08-04 14:34:24 +01:00
|
|
|
//@ check-pass
|
2020-08-04 10:47:07 +01:00
|
|
|
//@ 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(())
|
|
|
|
|
}
|