]> git.lizzy.rs Git - rust.git/blob - tests/ui/modulo_one.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / modulo_one.stderr
1 error: any number modulo 1 will be 0
2   --> $DIR/modulo_one.rs:7:5
3    |
4 LL |     10 % 1;
5    |     ^^^^^^
6    |
7    = note: `-D clippy::modulo-one` implied by `-D warnings`
8
9 error: the operation is ineffective. Consider reducing it to `1`
10   --> $DIR/modulo_one.rs:10:22
11    |
12 LL |     const ONE: u32 = 1 * 1;
13    |                      ^^^^^
14    |
15    = note: `-D clippy::identity-op` implied by `-D warnings`
16
17 error: the operation is ineffective. Consider reducing it to `1`
18   --> $DIR/modulo_one.rs:10:22
19    |
20 LL |     const ONE: u32 = 1 * 1;
21    |                      ^^^^^
22
23 error: any number modulo 1 will be 0
24   --> $DIR/modulo_one.rs:12:5
25    |
26 LL |     2 % ONE;
27    |     ^^^^^^^
28
29 error: aborting due to 4 previous errors
30