1 // aux-build:use-from-trait-xc.rs
3 extern crate use_from_trait_xc;
5 use use_from_trait_xc::Trait::foo;
6 //~^ ERROR `foo` is not directly importable
8 use use_from_trait_xc::Trait::Assoc;
9 //~^ ERROR `Assoc` is not directly importable
11 use use_from_trait_xc::Trait::CONST;
12 //~^ ERROR `CONST` is not directly importable
14 use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
15 //~^ ERROR unresolved import `use_from_trait_xc::Foo`
17 use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
18 //~^ ERROR unresolved import `use_from_trait_xc::Foo`
20 use use_from_trait_xc::Bar::new as bnew;
21 //~^ ERROR unresolved import `use_from_trait_xc::Bar`
23 use use_from_trait_xc::Baz::new as baznew;
24 //~^ ERROR unresolved import `use_from_trait_xc::Baz::new`