fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB56 linesraw
1error: malformed `repr` attribute input
2  --> $DIR/issue-43988.rs:24:5
3   |
4LL |     #[repr]
5   |     ^^^^^^^ help: must be of the form: `#[repr(C)]`
6
7error: malformed `repr` attribute input
8  --> $DIR/issue-43988.rs:34:14
9   |
10LL |     let _z = #[repr] 1;
11   |              ^^^^^^^ help: must be of the form: `#[repr(C)]`
12
13error[E0518]: attribute should be applied to function or closure
14  --> $DIR/issue-43988.rs:5:5
15   |
16LL |     #[inline]
17   |     ^^^^^^^^^
18LL |     let _a = 4;
19   |     ----------- not a function or closure
20
21error[E0518]: attribute should be applied to function or closure
22  --> $DIR/issue-43988.rs:10:5
23   |
24LL |     #[inline(XYZ)]
25   |     ^^^^^^^^^^^^^^
26LL |     let _b = 4;
27   |     ----------- not a function or closure
28
29error[E0552]: unrecognized representation hint
30  --> $DIR/issue-43988.rs:14:12
31   |
32LL |     #[repr(nothing)]
33   |            ^^^^^^^
34   |
35   = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
36
37error[E0552]: unrecognized representation hint
38  --> $DIR/issue-43988.rs:18:12
39   |
40LL |     #[repr(something_not_real)]
41   |            ^^^^^^^^^^^^^^^^^^
42   |
43   = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
44
45error[E0518]: attribute should be applied to function or closure
46  --> $DIR/issue-43988.rs:30:5
47   |
48LL |     #[inline(ABC)]
49   |     ^^^^^^^^^^^^^^
50LL |     foo();
51   |     ----- not a function or closure
52
53error: aborting due to 7 previous errors
54
55Some errors have detailed explanations: E0518, E0552.
56For more information about an error, try `rustc --explain E0518`.