about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-04-24 03:44:02 +0900
committerGitHub <noreply@github.com>2021-04-24 03:44:02 +0900
commitdcb4083ed94d0c14be8f731fca54b4c94fab6b64 (patch)
treea02dafa2d964066e5986fc8f12ce47bb11bc9e81 /src/test/ui/function-pointer
parent484c61943f818272719bac81f6d5709fc5456438 (diff)
parent49ccc3f320a4728b80f393d8a60fa4466f8a4c0c (diff)
downloadrust-dcb4083ed94d0c14be8f731fca54b4c94fab6b64.tar.gz
rust-dcb4083ed94d0c14be8f731fca54b4c94fab6b64.zip
Rollup merge of #80805 - camelid:iter-by_ref-example, r=steveklabnik
Improve `Iterator::by_ref` example

I split the example into two: one that fails to compile, and one that
works. I also made them identical except for the addition of `by_ref`
so we don't confuse readers with random differences.

cc `@steveklabnik,` who is the one that added the previous version of this example
Diffstat (limited to 'src/test/ui/function-pointer')
0 files changed, 0 insertions, 0 deletions