]>
git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/issue-100246.rs
1 #![recursion_limit = "5"] // To reduce noise
3 //expect incompatible type error when ambiguous traits are in scope
4 //and not an overflow error on the span in the main function.
12 impl<'a
, T
> Pow
for &'a Ratio
<T
>
16 fn pow(self) -> Self {
21 fn downcast
<'a
, W
: ?Sized
>() -> std
::io
::Result
<&'a W
> {
27 fn main() -> std
::io
::Result
<()> {
28 let other
: Other
= downcast()?
;//~ERROR 28:24: 28:35: `?` operator has incompatible types