diff options
author | Ilya Yanok <ilya.yanok@gmail.com> | 2021-10-23 11:40:46 +0200 |
---|---|---|
committer | Ilya Yanok <ilya.yanok@gmail.com> | 2021-10-24 20:12:22 +0200 |
commit | f3795e27c1f4ab46626f17e027f54a96ab9ea77c (patch) | |
tree | 44aa0a041758aeaf2ac7cf2d2d93f1fd342d9307 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | 508fadab16ec36c57daa8f0361db60848d31c0f7 (diff) | |
download | rust-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