]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/issue-100246.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / typeck / issue-100246.stderr
1 error[E0308]: `?` operator has incompatible types
2 --> $DIR/issue-100246.rs:28:24
3 |
4 LL | let other: Other = downcast()?;
5 | ^^^^^^^^^^^ expected struct `Other`, found reference
6 |
7 = note: `?` operator cannot convert from `&_` to `Other`
8 = note: expected struct `Other`
9 found reference `&_`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0308`.