mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
19 lines
314 B
Rust
19 lines
314 B
Rust
//@ 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(())
|
|
}
|