]> git.lizzy.rs Git - rust.git/blob - tests/ui/unseparated_prefix_literals.stderr
Rustup https://github.com/rust-lang/rust/pull/67359
[rust.git] / tests / ui / unseparated_prefix_literals.stderr
1 error: integer type suffix should be separated by an underscore
2   --> $DIR/unseparated_prefix_literals.rs:23:18
3    |
4 LL |     let _fail1 = 1234i32;
5    |                  ^^^^^^^ help: add an underscore: `1234_i32`
6    |
7    = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
8
9 error: integer type suffix should be separated by an underscore
10   --> $DIR/unseparated_prefix_literals.rs:24:18
11    |
12 LL |     let _fail2 = 1234u32;
13    |                  ^^^^^^^ help: add an underscore: `1234_u32`
14
15 error: integer type suffix should be separated by an underscore
16   --> $DIR/unseparated_prefix_literals.rs:25:18
17    |
18 LL |     let _fail3 = 1234isize;
19    |                  ^^^^^^^^^ help: add an underscore: `1234_isize`
20
21 error: integer type suffix should be separated by an underscore
22   --> $DIR/unseparated_prefix_literals.rs:26:18
23    |
24 LL |     let _fail4 = 1234usize;
25    |                  ^^^^^^^^^ help: add an underscore: `1234_usize`
26
27 error: integer type suffix should be separated by an underscore
28   --> $DIR/unseparated_prefix_literals.rs:27:18
29    |
30 LL |     let _fail5 = 0x123isize;
31    |                  ^^^^^^^^^^ help: add an underscore: `0x123_isize`
32
33 error: float type suffix should be separated by an underscore
34   --> $DIR/unseparated_prefix_literals.rs:31:19
35    |
36 LL |     let _failf1 = 1.5f32;
37    |                   ^^^^^^ help: add an underscore: `1.5_f32`
38
39 error: float type suffix should be separated by an underscore
40   --> $DIR/unseparated_prefix_literals.rs:32:19
41    |
42 LL |     let _failf2 = 1f32;
43    |                   ^^^^ help: add an underscore: `1_f32`
44
45 error: integer type suffix should be separated by an underscore
46   --> $DIR/unseparated_prefix_literals.rs:15:9
47    |
48 LL |         42usize
49    |         ^^^^^^^ help: add an underscore: `42_usize`
50 ...
51 LL |     let _ = lit_from_macro!();
52    |             ----------------- in this macro invocation
53    |
54    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
55
56 error: integer type suffix should be separated by an underscore
57   --> $DIR/unseparated_prefix_literals.rs:40:16
58    |
59 LL |     assert_eq!(4897u32, 32223);
60    |                ^^^^^^^ help: add an underscore: `4897_u32`
61
62 error: aborting due to 9 previous errors
63