summaryrefslogtreecommitdiff
path: root/tests/ui/associated-inherent-types/inference-fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-inherent-types/inference-fail.stderr')
-rw-r--r--tests/ui/associated-inherent-types/inference-fail.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/inference-fail.stderr b/tests/ui/associated-inherent-types/inference-fail.stderr
new file mode 100644
index 00000000000..f29144e4aa7
--- /dev/null
+++ b/tests/ui/associated-inherent-types/inference-fail.stderr
@@ -0,0 +1,9 @@
+error[E0282]: type annotations needed
+ --> $DIR/inference-fail.rs:10:12
+ |
+LL | let _: S<_>::P = ();
+ | ^^^^^^^ cannot infer type for type parameter `T`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0282`.