summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-25 22:59:47 +0200
committerGitHub <noreply@github.com>2021-10-25 22:59:47 +0200
commit14931b94a207b0aef76a7d426f0620095050d7f9 (patch)
treebf236a4e086073edadc500dd2edb9df4ddb55ae3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent2f6764760665a2ac776293edf8b6772d17f3e266 (diff)
parentf3795e27c1f4ab46626f17e027f54a96ab9ea77c (diff)
downloadrust-14931b94a207b0aef76a7d426f0620095050d7f9.tar.gz
Rollup merge of #90196 - yanok:master, r=scottmcm
Fix and extent ControlFlow `traverse_inorder` example 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