rust/src/test/ui/issue-18986.rs
2018-12-25 21:08:33 -07:00

11 lines
237 B
Rust

// aux-build:use_from_trait_xc.rs
extern crate use_from_trait_xc;
pub use use_from_trait_xc::Trait;
fn main() {
match () {
Trait { x: 42 } => () //~ ERROR expected struct, variant or union type, found trait `Trait`
}
}