summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0719.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0719.stderr')
-rw-r--r--src/test/ui/error-codes/E0719.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0719.stderr b/src/test/ui/error-codes/E0719.stderr
new file mode 100644
index 000000000..b342d6343
--- /dev/null
+++ b/src/test/ui/error-codes/E0719.stderr
@@ -0,0 +1,19 @@
+error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
+ --> $DIR/E0719.rs:1:33
+ |
+LL | trait Foo: Iterator<Item = i32, Item = i32> {}
+ | ---------- ^^^^^^^^^^ re-bound here
+ | |
+ | `Item` bound here first
+
+error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
+ --> $DIR/E0719.rs:6:42
+ |
+LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
+ | --------- ^^^^^^^^^^^ re-bound here
+ | |
+ | `Item` bound here first
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0719`.