]> git.proxmox.com Git - rustc.git/blame - src/test/ui/inference/cannot-infer-closure.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / inference / cannot-infer-closure.stderr
CommitLineData
923072b8 1error[E0282]: type annotations needed
17df50a5 2 --> $DIR/cannot-infer-closure.rs:4:9
e1599b0c 3 |
17df50a5 4LL | Ok(b)
923072b8 5 | ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
e74abb32 6 |
923072b8 7help: consider specifying the generic arguments
e1599b0c 8 |
923072b8
FG
9LL | Ok::<(), E>(b)
10 | +++++++++
e1599b0c
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0282`.