mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
11 lines
237 B
Rust
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`
|
|
}
|
|
}
|