]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/reasons.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / reasons.stderr
1 warning: hidden lifetime parameters in types are deprecated
2   --> $DIR/reasons.rs:20:34
3    |
4 LL |     fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
5    |                             -----^^^^^^^^^
6    |                             |
7    |                             expected lifetime parameter
8    |
9    = note: explicit anonymous lifetimes aid reasoning about ownership
10 note: the lint level is defined here
11   --> $DIR/reasons.rs:4:9
12    |
13 LL | #![warn(elided_lifetimes_in_paths,
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
15 help: indicate the anonymous lifetime
16    |
17 LL |     fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
18    |                                           ++++
19
20 warning: variable `Social_exchange_psychology` should have a snake case name
21   --> $DIR/reasons.rs:30:9
22    |
23 LL |     let Social_exchange_psychology = CheaterDetectionMechanism {};
24    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `social_exchange_psychology`
25    |
26    = note: people shouldn't have to change their usual style habits
27            to contribute to our project
28 note: the lint level is defined here
29   --> $DIR/reasons.rs:8:5
30    |
31 LL |     nonstandard_style,
32    |     ^^^^^^^^^^^^^^^^^
33    = note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
34
35 warning: 2 warnings emitted
36