summaryrefslogtreecommitdiffstats
path: root/src/test/ui/use/issue-18986.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/use/issue-18986.stderr')
-rw-r--r--src/test/ui/use/issue-18986.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/use/issue-18986.stderr b/src/test/ui/use/issue-18986.stderr
new file mode 100644
index 000000000..6c23178c7
--- /dev/null
+++ b/src/test/ui/use/issue-18986.stderr
@@ -0,0 +1,9 @@
+error[E0574]: expected struct, variant or union type, found trait `Trait`
+ --> $DIR/issue-18986.rs:8:9
+ |
+LL | Trait { x: 42 } => ()
+ | ^^^^^ not a struct, variant or union type
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0574`.