2014-11-16 20:55:17 +01:00
|
|
|
// aux-build:use_from_trait_xc.rs
|
|
|
|
|
|
|
|
extern crate use_from_trait_xc;
|
|
|
|
pub use use_from_trait_xc::Trait;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match () {
|
2016-09-15 00:51:46 +03:00
|
|
|
Trait { x: 42 } => () //~ ERROR expected struct, variant or union type, found trait `Trait`
|
2014-11-16 20:55:17 +01:00
|
|
|
}
|
|
|
|
}
|