]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/integer_division.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / integer_division.stderr
CommitLineData
f20569fa
XL
1error: integer division
2 --> $DIR/integer_division.rs:5:13
3 |
4LL | let n = 1 / 2;
5 | ^^^^^
6 |
7 = note: `-D clippy::integer-division` implied by `-D warnings`
8 = help: division of integers may cause loss of precision. consider using floats
9
10error: integer division
11 --> $DIR/integer_division.rs:6:13
12 |
13LL | let o = 1 / two;
14 | ^^^^^^^
15 |
16 = help: division of integers may cause loss of precision. consider using floats
17
18error: integer division
19 --> $DIR/integer_division.rs:7:13
20 |
21LL | let p = two / 4;
22 | ^^^^^^^
23 |
24 = help: division of integers may cause loss of precision. consider using floats
25
26error: aborting due to 3 previous errors
27