]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-100246.stderr
Auto merge of #100578 - Urgau:float-next-up-down, r=scottmcm
[rust.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`.