2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-03-25 11:28:28 -05:00
|
|
|
#![allow(nonstandard_style)]
|
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
pub struct Foo { pub bar: Bar }
|
|
|
|
pub struct Bar(pub char);
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod x {
|
|
|
|
use crate::bar;
|
|
|
|
pub const Foo: bar::Bar = bar::Bar('a');
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn warning() -> bar::Foo {
|
|
|
|
#![deny(unused_imports)] // no error
|
|
|
|
use bar::*;
|
|
|
|
use x::Foo;
|
|
|
|
Foo { bar: Foo }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|