|
| 1 | +//~ ERROR failed to resolve: could not find `future` in `std` [E0433] |
| 2 | +//~^ ERROR failed to resolve: could not find `pin` in `std` [E0433] |
| 3 | +//~^^ ERROR failed to resolve: could not find `future` in `std` [E0433] |
| 4 | +//~^^^ ERROR failed to resolve: could not find `future` in `std` [E0433] |
| 5 | +//~^^^^ ERROR failed to resolve: could not find `task` in `std` [E0433] |
| 6 | +//~^^^^^ ERROR failed to resolve: could not find `task` in `std` [E0433] |
| 7 | +//~^^^^^^ ERROR failed to resolve: could not find `future` in `std` [E0433] |
| 8 | +//~^^^^^^^ ERROR failed to resolve: could not find `future` in `std` [E0433] |
| 9 | +//~^^^^^^^^ ERROR failed to resolve: could not find `ops` in `std` [E0433] |
| 10 | +//~^^^^^^^^^ ERROR failed to resolve: could not find `option` in `std` [E0433] |
| 11 | +//~^^^^^^^^^^ ERROR failed to resolve: could not find `option` in `std` [E0433] |
| 12 | +//~^^^^^^^^^^^ ERROR failed to resolve: could not find `iter` in `std` [E0433] |
| 13 | +//~^^^^^^^^^^^^ ERROR failed to resolve: could not find `iter` in `std` [E0433] |
| 14 | +//~^^^^^^^^^^^^^ ERROR failed to resolve: could not find `ops` in `std` [E0433] |
| 15 | +//~^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `option` in `std` [E0433] |
| 16 | +//~^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `option` in `std` [E0433] |
| 17 | +//~^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `iter` in `std` [E0433] |
| 18 | +//~^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `iter` in `std` [E0433] |
| 19 | +//~^^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `ops` in `std` [E0433] |
| 20 | +//~^^^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `result` in `std` [E0433] |
| 21 | +//~^^^^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `convert` in `std` [E0433] |
| 22 | +//~^^^^^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `ops` in `std` [E0433] |
| 23 | +//~^^^^^^^^^^^^^^^^^^^^^^ ERROR failed to resolve: could not find `result` in `std` [E0433] |
| 24 | + |
| 25 | +// edition:2018 |
| 26 | +// aux-build:not-libstd.rs |
| 27 | + |
| 28 | +// Check that paths created in HIR are not affected by in scope names. |
| 29 | + |
| 30 | +extern crate not_libstd as std; |
| 31 | + |
| 32 | +async fn the_future() { |
| 33 | + async {}.await; |
| 34 | +} |
| 35 | + |
| 36 | +fn main() -> Result<(), ()> { |
| 37 | + for i in 0..10 {} |
| 38 | + for j in 0..=10 {} |
| 39 | + Ok(())?; |
| 40 | + Ok(()) |
| 41 | +} |
0 commit comments