summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-eq-expr-path.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-types/associated-types-eq-expr-path.stderr')
-rw-r--r--src/test/ui/associated-types/associated-types-eq-expr-path.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/associated-types/associated-types-eq-expr-path.stderr b/src/test/ui/associated-types/associated-types-eq-expr-path.stderr
new file mode 100644
index 000000000..bd354cf3e
--- /dev/null
+++ b/src/test/ui/associated-types/associated-types-eq-expr-path.stderr
@@ -0,0 +1,9 @@
+error[E0229]: associated type bindings are not allowed here
+ --> $DIR/associated-types-eq-expr-path.rs:14:26
+ |
+LL | let x: isize = Foo::<A=usize>::bar();
+ | ^^^^^^^ associated type not allowed here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0229`.