diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/use/issue-18986.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/use/issue-18986.rs b/src/test/ui/use/issue-18986.rs new file mode 100644 index 000000000..f0b292f29 --- /dev/null +++ b/src/test/ui/use/issue-18986.rs @@ -0,0 +1,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` + } +} |