about summary refs log tree commit diff
path: root/tests/ui/static
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static')
-rw-r--r--tests/ui/static/static-reference-to-fn-1.stderr5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/static/static-reference-to-fn-1.stderr b/tests/ui/static/static-reference-to-fn-1.stderr
index 6bf64974ef5..72036269b29 100644
--- a/tests/ui/static/static-reference-to-fn-1.stderr
+++ b/tests/ui/static/static-reference-to-fn-1.stderr
@@ -9,8 +9,9 @@ LL |         func: &foo,
    = note: fn items are distinct from fn pointers
 help: consider casting to a fn pointer
    |
-LL |         func: &(foo as fn() -> Option<isize>),
-   |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+LL -         func: &foo,
+LL +         func: &(foo as fn() -> Option<isize>),
+   |
 
 error: aborting due to 1 previous error