summaryrefslogtreecommitdiffstats
path: root/tests/ui/static/static-reference-to-fn-1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/static-reference-to-fn-1.stderr')
-rw-r--r--tests/ui/static/static-reference-to-fn-1.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/static/static-reference-to-fn-1.stderr b/tests/ui/static/static-reference-to-fn-1.stderr
index 86c4eaa7e..6bf64974e 100644
--- a/tests/ui/static/static-reference-to-fn-1.stderr
+++ b/tests/ui/static/static-reference-to-fn-1.stderr
@@ -4,14 +4,14 @@ error[E0308]: mismatched types
LL | func: &foo,
| ^^^^ expected `&fn() -> Option<isize>`, found `&fn() -> Option<isize> {foo}`
|
- = note: expected reference `&fn() -> Option<isize>`
- found reference `&fn() -> Option<isize> {foo}`
+ = note: expected reference `&fn() -> Option<_>`
+ found reference `&fn() -> Option<_> {foo}`
= note: fn items are distinct from fn pointers
help: consider casting to a fn pointer
|
LL | func: &(foo as fn() -> Option<isize>),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-error: aborting due to previous error
+error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.