about summary refs log tree commit diff
path: root/tests/ui/lint/reasons.stderr
blob: 8028785ab94bee6b199c93ba1461c8c8f793cfb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
warning: hidden lifetime parameters in types are deprecated
  --> $DIR/reasons.rs:19:34
   |
LL |     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
   |                             -----^^^^^^^^^
   |                             |
   |                             expected lifetime parameter
   |
   = note: explicit anonymous lifetimes aid reasoning about ownership
note: the lint level is defined here
  --> $DIR/reasons.rs:3:9
   |
LL | #![warn(elided_lifetimes_in_paths,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
help: indicate the anonymous lifetime
   |
LL |     fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
   |                                           ++++

warning: variable `Social_exchange_psychology` should have a snake case name
  --> $DIR/reasons.rs:29:9
   |
LL |     let Social_exchange_psychology = CheaterDetectionMechanism {};
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `social_exchange_psychology`
   |
   = note: people shouldn't have to change their usual style habits
           to contribute to our project
note: the lint level is defined here
  --> $DIR/reasons.rs:7:5
   |
LL |     nonstandard_style,
   |     ^^^^^^^^^^^^^^^^^
   = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`

warning: 2 warnings emitted