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-23 11:40:46 +0200 |
commit | 508fadab16ec36c57daa8f0361db60848d31c0f7 (patch) | |
tree | 89ccab1c65f13b87fe729e490d723e7300ad087d /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | 3d71e749a244890cd370d49963e747cf92f4a037 (diff) | |
download | rust-508fadab16ec36c57daa8f0361db60848d31c0f7.tar.gz |
Update control_flow.rs
Fix and extent 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 Fn trait instead of FnMut.
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