3 #![feature(lint_reasons)]
5 #![warn(elided_lifetimes_in_paths,
6 //~^ NOTE lint level defined here
7 reason = "explicit anonymous lifetimes aid reasoning about ownership")]
10 //~^ NOTE lint level 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 such as
32 //~| NOTE people shouldn't have to change their usual style habits