2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:use-from-trait-xc.rs
|
2014-11-16 13:55:17 -06:00
|
|
|
|
|
|
|
extern crate use_from_trait_xc;
|
|
|
|
pub use use_from_trait_xc::Trait;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match () {
|
2016-09-14 16:51:46 -05:00
|
|
|
Trait { x: 42 } => () //~ ERROR expected struct, variant or union type, found trait `Trait`
|
2014-11-16 13:55:17 -06:00
|
|
|
}
|
|
|
|
}
|