Avoiding anonymous parameters

Anonymous parameters have been deprecated. This allowed you to specify traits without requiring binding names in traits:

trait MyTrait {    fn check_this(String);}

This is a deprecated legacy feature that might get removed in future versions, so you should probably avoid using this syntax. In order to warn or deny this syntax in your code base, you will need to use this syntax: #![warn(anonymous_parameters)].

Get Rust High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.