about summary refs log tree commit diff
path: root/tests/ui/issues
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-08-28 02:37:38 +0000
committerMichael Goulet <michael@errs.io>2023-08-30 15:09:40 -0700
commitbf66723c0ecbadc3b4b24da44fa02b7ea3cd73bb (patch)
tree3239ecc9f73116928e02f714a72410b16f89854c /tests/ui/issues
parent0100a94231344987bc93998d5975e656bfd7767d (diff)
downloadrust-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/issues')
-rw-r--r--tests/ui/issues/issue-10764.stderr1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ui/issues/issue-10764.stderr b/tests/ui/issues/issue-10764.stderr
index fcb45affe2c..4d8a85a1397 100644
--- a/tests/ui/issues/issue-10764.stderr
+++ b/tests/ui/issues/issue-10764.stderr
@@ -8,7 +8,6 @@ LL | fn main() { f(bar) }
    |
    = note: expected fn pointer `fn()`
                  found fn item `extern "C" fn() {bar}`
-   = note: when the arguments and return types match, functions can be coerced to function pointers
 note: function defined here
   --> $DIR/issue-10764.rs:1:4
    |