summaryrefslogtreecommitdiffstats
path: root/src/test/ui/inference/cannot-infer-partial-try-return.stderr
blob: 2a56aaa44fef23b3ae435b47451aa9e7986f4769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0282]: type annotations needed
  --> $DIR/cannot-infer-partial-try-return.rs:20:9
   |
LL |         infallible()?;
   |         ------------- type must be known at this point
LL |         Ok(())
   |         ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
   |
help: consider specifying the generic arguments
   |
LL |         Ok::<(), QualifiedError<_>>(())
   |           +++++++++++++++++++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.