]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/inference/cannot-infer-partial-try-return.rs
1 struct QualifiedError
<E
>(E
);
3 impl<E
, T
> From
<E
> for QualifiedError
<T
>
8 fn from(e
: E
) -> QualifiedError
<T
> {
9 QualifiedError(e
.into())
13 fn infallible() -> Result
<(), std
::convert
::Infallible
> {
18 let x
= || -> Result
<_
, QualifiedError
<_
>> {
21 //~^ ERROR type annotations needed