diff options
Diffstat (limited to 'src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr')
-rw-r--r-- | src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr b/src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr new file mode 100644 index 000000000..9dea667fb --- /dev/null +++ b/src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr @@ -0,0 +1,14 @@ +error[E0282]: type annotations needed + --> $DIR/fn-needing-specified-return-type-param.rs:3:13 + | +LL | let _ = f; + | ^ cannot infer type of the type parameter `A` declared on the function `f` + | +help: consider specifying the generic argument + | +LL | let _ = f::<A>; + | +++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0282`. |