summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0582.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0582.stderr')
-rw-r--r--src/test/ui/error-codes/E0582.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0582.stderr b/src/test/ui/error-codes/E0582.stderr
new file mode 100644
index 000000000..81a2f0046
--- /dev/null
+++ b/src/test/ui/error-codes/E0582.stderr
@@ -0,0 +1,15 @@
+error[E0582]: binding for associated type `Output` references lifetime `'a`, which does not appear in the trait input types
+ --> $DIR/E0582.rs:28:30
+ |
+LL | where F: for<'a> Fn() -> Option<&'a i32>
+ | ^^^^^^^^^^^^^^^
+
+error[E0582]: binding for associated type `Item` references lifetime `'a`, which does not appear in the trait input types
+ --> $DIR/E0582.rs:36:31
+ |
+LL | where F: for<'a> Iterator<Item=&'a i32>
+ | ^^^^^^^^^^^^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0582`.