blob: 8b77de94e89f866aee1c72f0c916d5927e3f151d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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`.
|