about summary refs log tree commit diff
path: root/tests/ui/use/issue-18986.rs
blob: 62fd4769a0389c5d2f061c35f8f3340d2f9e5eb5 (plain)
1
2
3
4
5
6
7
8
9
10
//@ 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`
    }
}