]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43988.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-43988.stderr
1 warning: `repr` attribute must have a hint
2   --> $DIR/issue-43988.rs:34:5
3    |
4 LL |     #[repr]
5    |     ^^^^^^^ needs a hint
6    |
7    = note: #[warn(bad_repr)] on by default
8    = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
9    = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
10
11 warning: `repr` attribute must have a hint
12   --> $DIR/issue-43988.rs:46:14
13    |
14 LL |     let _z = #[repr] 1;
15    |              ^^^^^^^ needs a hint
16    |
17    = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
18    = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
19
20 error[E0518]: attribute should be applied to function or closure
21   --> $DIR/issue-43988.rs:15:5
22    |
23 LL |     #[inline]
24    |     ^^^^^^^^^
25 LL |     let _a = 4;
26    |     ----------- not a function or closure
27
28 error[E0518]: attribute should be applied to function or closure
29   --> $DIR/issue-43988.rs:20:5
30    |
31 LL |     #[inline(XYZ)]
32    |     ^^^^^^^^^^^^^^
33 LL |     let _b = 4;
34    |     ----------- not a function or closure
35
36 error[E0517]: attribute should not be applied to a statement
37   --> $DIR/issue-43988.rs:24:5
38    |
39 LL |     #[repr(nothing)]
40    |     ^^^^^^^^^^^^^^^^
41 LL |     let _x = 0;
42    |     ----------- not a struct, enum or union
43
44 error[E0517]: attribute should not be applied to an expression
45   --> $DIR/issue-43988.rs:28:5
46    |
47 LL |       #[repr(something_not_real)]
48    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 LL | /     loop {
50 LL | |         ()
51 LL | |     };
52    | |_____- not defining a struct, enum or union
53
54 error[E0517]: attribute should not be applied to a statement
55   --> $DIR/issue-43988.rs:34:5
56    |
57 LL |     #[repr]
58    |     ^^^^^^^
59 LL |     let _y = "123";
60    |     --------------- not a struct, enum or union
61
62 error[E0518]: attribute should be applied to function or closure
63   --> $DIR/issue-43988.rs:42:5
64    |
65 LL |     #[inline(ABC)]
66    |     ^^^^^^^^^^^^^^
67 LL |     foo();
68    |     ----- not a function or closure
69
70 error[E0517]: attribute should not be applied to an expression
71   --> $DIR/issue-43988.rs:46:14
72    |
73 LL |     let _z = #[repr] 1;
74    |              ^^^^^^^ - not defining a struct, enum or union
75
76 error: aborting due to 7 previous errors
77
78 Some errors occurred: E0517, E0518.
79 For more information about an error, try `rustc --explain E0517`.