about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-43988.stderr
blob: 6fe41a3de29b4f0718aede48dcd399c55e53d352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
error: attribute must be of the form `#[repr(C, packed, ...)]`
  --> $DIR/issue-43988.rs:24:5
   |
LL |     #[repr]
   |     ^^^^^^^

error: attribute must be of the form `#[repr(C, packed, ...)]`
  --> $DIR/issue-43988.rs:35:14
   |
LL |     let _z = #[repr] 1;
   |              ^^^^^^^

error[E0518]: attribute should be applied to function or closure
  --> $DIR/issue-43988.rs:5:5
   |
LL |     #[inline]
   |     ^^^^^^^^^
LL |     let _a = 4;
   |     ----------- not a function or closure

error[E0518]: attribute should be applied to function or closure
  --> $DIR/issue-43988.rs:10:5
   |
LL |     #[inline(XYZ)]
   |     ^^^^^^^^^^^^^^
LL |     let _b = 4;
   |     ----------- not a function or closure

error[E0517]: attribute should not be applied to a statement
  --> $DIR/issue-43988.rs:14:5
   |
LL |     #[repr(nothing)]
   |     ^^^^^^^^^^^^^^^^
LL |     let _x = 0;
   |     ----------- not a struct, enum or union

error[E0517]: attribute should not be applied to an expression
  --> $DIR/issue-43988.rs:18:5
   |
LL |       #[repr(something_not_real)]
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | /     loop {
LL | |         ()
LL | |     };
   | |_____- not defining a struct, enum or union

error[E0517]: attribute should not be applied to a statement
  --> $DIR/issue-43988.rs:24:5
   |
LL |     #[repr]
   |     ^^^^^^^
LL |     let _y = "123";
   |     --------------- not a struct, enum or union

error[E0518]: attribute should be applied to function or closure
  --> $DIR/issue-43988.rs:31:5
   |
LL |     #[inline(ABC)]
   |     ^^^^^^^^^^^^^^
LL |     foo();
   |     ----- not a function or closure

error[E0517]: attribute should not be applied to an expression
  --> $DIR/issue-43988.rs:35:14
   |
LL |     let _z = #[repr] 1;
   |              ^^^^^^^ - not defining a struct, enum or union

error: aborting due to 9 previous errors

Some errors occurred: E0517, E0518.
For more information about an error, try `rustc --explain E0517`.