2019-04-01 16:22:12 -04:00
|
|
|
use Trait::foo; //~ ERROR `foo` is not directly importable
|
|
|
|
use Trait::Assoc; //~ ERROR `Assoc` is not directly importable
|
|
|
|
use Trait::C; //~ ERROR `C` is not directly importable
|
2015-08-12 19:58:32 +03:00
|
|
|
|
2019-04-01 16:22:12 -04:00
|
|
|
use Foo::new; //~ ERROR unresolved import `Foo` [E0432]
|
2013-05-13 16:13:20 -07:00
|
|
|
|
2019-04-01 16:22:12 -04:00
|
|
|
use Foo::C2; //~ ERROR unresolved import `Foo` [E0432]
|
2015-08-12 19:58:32 +03:00
|
|
|
|
2013-05-13 16:13:20 -07:00
|
|
|
pub trait Trait {
|
|
|
|
fn foo();
|
2015-08-12 19:58:32 +03:00
|
|
|
type Assoc;
|
|
|
|
const C: u32;
|
2013-05-13 16:13:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn new() {}
|
2015-08-12 19:58:32 +03:00
|
|
|
const C2: u32 = 0;
|
2013-05-13 16:13:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|