3 #![feature(lint_reasons)]
5 #![warn(elided_lifetimes_in_paths,
6 //~^ NOTE the lint level is defined here
7 reason = "explicit anonymous lifetimes aid reasoning about ownership")]
10 //~^ NOTE the lint level is defined here
11 reason = r#"people shouldn't have to change their usual style habits
12 to contribute to our project"#
14 #![allow(unused, reason = "unused code has never killed anypony")]
18 pub struct CheaterDetectionMechanism {}
20 impl fmt::Debug for CheaterDetectionMechanism {
21 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
22 //~^ WARN hidden lifetime parameters in types are deprecated
23 //~| NOTE explicit anonymous lifetimes aid
24 //~| HELP indicate the anonymous lifetime
25 fmt.debug_struct("CheaterDetectionMechanism").finish()
30 let Social_exchange_psychology = CheaterDetectionMechanism {};
31 //~^ WARN should have a snake case name
32 //~| NOTE #[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]
33 //~| NOTE people shouldn't have to change their usual style habits
34 //~| HELP convert the identifier to snake case