summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/infer/cannot-infer-const-args.stderr')
-rw-r--r--tests/ui/const-generics/infer/cannot-infer-const-args.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/const-generics/infer/cannot-infer-const-args.stderr b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
new file mode 100644
index 000000000..93e45a88a
--- /dev/null
+++ b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
@@ -0,0 +1,14 @@
+error[E0282]: type annotations needed
+ --> $DIR/cannot-infer-const-args.rs:6:5
+ |
+LL | foo();
+ | ^^^ cannot infer the value of the const parameter `X` declared on the function `foo`
+ |
+help: consider specifying the generic argument
+ |
+LL | foo::<X>();
+ | +++++
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0282`.