2013-05-13 23:13:20 +00:00
|
|
|
// aux-build:use_from_trait_xc.rs
|
|
|
|
|
2014-02-14 18:10:06 +00:00
|
|
|
extern crate use_from_trait_xc;
|
2013-05-13 23:13:20 +00:00
|
|
|
|
2014-06-05 21:37:52 +00:00
|
|
|
use use_from_trait_xc::Trait::foo;
|
2014-10-19 06:46:08 +00:00
|
|
|
//~^ ERROR `foo` is not directly importable
|
2013-05-13 23:13:20 +00:00
|
|
|
|
2015-08-12 16:58:32 +00:00
|
|
|
use use_from_trait_xc::Trait::Assoc;
|
|
|
|
//~^ ERROR `Assoc` is not directly importable
|
|
|
|
|
|
|
|
use use_from_trait_xc::Trait::CONST;
|
|
|
|
//~^ ERROR `CONST` is not directly importable
|
|
|
|
|
2016-08-18 02:00:47 +00:00
|
|
|
use use_from_trait_xc::Foo::new; //~ ERROR struct `Foo` is private
|
2017-07-23 22:15:45 +00:00
|
|
|
//~^ ERROR unresolved import `use_from_trait_xc::Foo`
|
2014-06-05 21:37:52 +00:00
|
|
|
|
2016-08-18 02:00:47 +00:00
|
|
|
use use_from_trait_xc::Foo::C; //~ ERROR struct `Foo` is private
|
2017-07-23 22:15:45 +00:00
|
|
|
//~^ ERROR unresolved import `use_from_trait_xc::Foo`
|
2015-08-12 16:58:32 +00:00
|
|
|
|
2014-10-19 06:46:08 +00:00
|
|
|
use use_from_trait_xc::Bar::new as bnew;
|
2017-07-23 22:15:45 +00:00
|
|
|
//~^ ERROR unresolved import `use_from_trait_xc::Bar`
|
2014-10-19 06:46:08 +00:00
|
|
|
|
|
|
|
use use_from_trait_xc::Baz::new as baznew;
|
2016-07-16 21:15:15 +00:00
|
|
|
//~^ ERROR unresolved import `use_from_trait_xc::Baz::new`
|
2014-07-17 04:50:54 +00:00
|
|
|
|
2014-06-05 21:37:52 +00:00
|
|
|
fn main() {}
|