Skip to content

traverse_inorder example in ControlFlow compiles, but can't be called #90063

Closed
@scottmcm

Description

@scottmcm

Found by Inky-developer in https://users.rust-lang.org/t/how-to-use-documentation-example-for-std-controlflow/66115?u=scottmcm

The example compiles, but can't actually be monomorphized as it adds another &mut at each level of the recursion.

It needs a fix like https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0b534dc88883f0ebd67774f56a857da2

(And it'd probably be good to show a call in the example anyway.)

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions