summary refs log tree commit diff
path: root/src/test/compile-fail/use-from-trait-xc.rs
blob: 3ac3e8c832d8c86b209c559cf2089de4447796ef (plain)
1
2
3
4
5
6
7
8
9
10
11
// aux-build:use_from_trait_xc.rs

extern mod use_from_trait_xc;

use use_from_trait_xc::Trait::foo;  //~ ERROR cannot import from a trait or type implementation
//~^ ERROR failed to resolve import
use use_from_trait_xc::Foo::new;    //~ ERROR cannot import from a trait or type implementation
//~^ ERROR failed to resolve import

fn main() {
}