blob: 86eb163b4713af8b369ad2c232b59d752eeb2313 [file] [log] [blame]
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 1 previous error
For more information about this error, try `rustc --explain E0308`.