about summary refs log tree commit diff
path: root/tests/ui/lifetimes/nested-binder-print.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lifetimes/nested-binder-print.stderr')
-rw-r--r--tests/ui/lifetimes/nested-binder-print.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/lifetimes/nested-binder-print.stderr b/tests/ui/lifetimes/nested-binder-print.stderr
new file mode 100644
index 00000000000..32dd896932d
--- /dev/null
+++ b/tests/ui/lifetimes/nested-binder-print.stderr
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+  --> $DIR/nested-binder-print.rs:6:18
+   |
+LL |     let x: u32 = y;
+   |            ---   ^ expected `u32`, found fn pointer
+   |            |
+   |            expected due to this
+   |
+   = note:    expected type `u32`
+           found fn pointer `for<'a> fn(for<'b> fn(TwoLt<'b, 'a>))`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.