mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
12 lines
345 B
Rust
12 lines
345 B
Rust
|
// 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() {
|
||
|
}
|