summaryrefslogtreecommitdiffstats
path: root/src/test/ui/assoc-inherent.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/assoc-inherent.stderr')
-rw-r--r--src/test/ui/assoc-inherent.stderr17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/assoc-inherent.stderr b/src/test/ui/assoc-inherent.stderr
new file mode 100644
index 000000000..b703453fa
--- /dev/null
+++ b/src/test/ui/assoc-inherent.stderr
@@ -0,0 +1,17 @@
+error: associated type in `impl` without body
+ --> $DIR/assoc-inherent.rs:14:5
+ |
+LL | type Baz;
+ | ^^^^^^^^-
+ | |
+ | help: provide a definition for the type: `= <type>;`
+
+error[E0223]: ambiguous associated type
+ --> $DIR/assoc-inherent.rs:18:13
+ |
+LL | let x : Foo::Bar;
+ | ^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Bar`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0223`.