2019-09-07 11:34:25 -05:00
|
|
|
// There should be *one* unused import error.
|
2019-04-28 13:27:01 -05:00
|
|
|
#![deny(unused_imports)]
|
|
|
|
|
|
|
|
mod qux {
|
|
|
|
fn quz() {}
|
2019-09-07 11:34:25 -05:00
|
|
|
pub fn quy() {}
|
2019-04-28 13:27:01 -05:00
|
|
|
}
|
|
|
|
|
2019-09-07 11:34:25 -05:00
|
|
|
use qux::quz; //~ ERROR function `quz` is private
|
|
|
|
use qux::bar; //~ ERROR unresolved import `qux::bar`
|
2019-09-01 02:01:25 -05:00
|
|
|
use foo::bar; //~ ERROR unresolved import `foo`
|
|
|
|
use baz::*; //~ ERROR unresolved import `baz`
|
2019-09-07 11:34:25 -05:00
|
|
|
use qux::bar2; //~ ERROR unresolved import `qux::bar2`
|
2019-09-01 02:01:25 -05:00
|
|
|
use foo2::bar2;//~ ERROR unresolved import `foo2`
|
|
|
|
use baz2::*; //~ ERROR unresolved import `baz2`
|
2019-09-07 11:34:25 -05:00
|
|
|
use qux::quy; //~ ERROR unused import
|
2019-04-28 13:27:01 -05:00
|
|
|
|
|
|
|
fn main() {}
|