2019-04-01 20:22:12 +00: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 16:58:32 +00:00
|
|
|
|
2019-04-01 20:22:12 +00:00
|
|
|
use Foo::new; //~ ERROR unresolved import `Foo` [E0432]
|
2013-05-13 23:13:20 +00:00
|
|
|
|
2019-04-01 20:22:12 +00:00
|
|
|
use Foo::C2; //~ ERROR unresolved import `Foo` [E0432]
|
2015-08-12 16:58:32 +00:00
|
|
|
|
2013-05-13 23:13:20 +00:00
|
|
|
pub trait Trait {
|
|
|
|
fn foo();
|
2015-08-12 16:58:32 +00:00
|
|
|
type Assoc;
|
|
|
|
const C: u32;
|
2013-05-13 23:13:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn new() {}
|
2015-08-12 16:58:32 +00:00
|
|
|
const C2: u32 = 0;
|
2013-05-13 23:13:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|