blob: 428a0792091e650f66961e644bdfbe254f7b58f2 (
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 `Other`, found `&_`
|
= 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`.
|