diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-28 02:37:38 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-08-30 15:09:40 -0700 |
| commit | bf66723c0ecbadc3b4b24da44fa02b7ea3cd73bb (patch) | |
| tree | 3239ecc9f73116928e02f714a72410b16f89854c /tests/ui/static | |
| parent | 0100a94231344987bc93998d5975e656bfd7767d (diff) | |
| download | rust-bf66723c0ecbadc3b4b24da44fa02b7ea3cd73bb.tar.gz rust-bf66723c0ecbadc3b4b24da44fa02b7ea3cd73bb.zip | |
Test and note unsafe ctor to fn ptr coercion
Also remove a note that I don't consider to be very useful in context.
Diffstat (limited to 'tests/ui/static')
| -rw-r--r-- | tests/ui/static/static-reference-to-fn-1.stderr | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/static/static-reference-to-fn-1.stderr b/tests/ui/static/static-reference-to-fn-1.stderr index b68352b5183..86c4eaa7eb4 100644 --- a/tests/ui/static/static-reference-to-fn-1.stderr +++ b/tests/ui/static/static-reference-to-fn-1.stderr @@ -7,7 +7,6 @@ LL | func: &foo, = note: expected reference `&fn() -> Option<isize>` found reference `&fn() -> Option<isize> {foo}` = note: fn items are distinct from fn pointers - = note: when the arguments and return types match, functions can be coerced to function pointers help: consider casting to a fn pointer | LL | func: &(foo as fn() -> Option<isize>), |
