summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@gmail.com>2021-10-23 11:40:46 +0200
committerIlya Yanok <ilya.yanok@gmail.com>2021-10-24 20:12:22 +0200
commitf3795e27c1f4ab46626f17e027f54a96ab9ea77c (patch)
tree44aa0a041758aeaf2ac7cf2d2d93f1fd342d9307 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent508fadab16ec36c57daa8f0361db60848d31c0f7 (diff)
downloadrust-f3795e27c1f4ab46626f17e027f54a96ab9ea77c.tar.gz
Fix and extend ControlFlow `traverse_inorder` example
1. The existing example compiles on its own, but any usage fails to be monomorphised and so doesn't compile. Fix that by using a mutable reference as an input argument. 2. Added an example usage of `traverse_inorder` showing how we can terminate the traversal early. Fixes #90063
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions