2018-08-11 03:13:57 -05:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
// This test is similar to `ambiguity.rs`, but nested in a module.
|
|
|
|
|
2018-12-16 21:21:47 -06:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2018-08-11 03:13:57 -05:00
|
|
|
mod foo {
|
|
|
|
pub use std::io;
|
2018-11-04 16:11:59 -06:00
|
|
|
//~^ ERROR `std` is ambiguous
|
2018-08-11 03:13:57 -05:00
|
|
|
|
|
|
|
mod std {
|
|
|
|
pub struct io;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|