summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-100246.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/typeck/issue-100246.stderr')
-rw-r--r--src/test/ui/typeck/issue-100246.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/typeck/issue-100246.stderr b/src/test/ui/typeck/issue-100246.stderr
new file mode 100644
index 000000000..8b77de94e
--- /dev/null
+++ b/src/test/ui/typeck/issue-100246.stderr
@@ -0,0 +1,13 @@
+error[E0308]: `?` operator has incompatible types
+ --> $DIR/issue-100246.rs:28:24
+ |
+LL | let other: Other = downcast()?;
+ | ^^^^^^^^^^^ expected struct `Other`, found reference
+ |
+ = note: `?` operator cannot convert from `&_` to `Other`
+ = note: expected struct `Other`
+ found reference `&_`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.