rust/tests/ui/use/issue-18986.rs
2024-02-16 20:02:50 +00:00

11 lines
238 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`
}
}