|
1 | | -error[E0435]: attempt to use a non-constant value in a constant |
2 | | - --> $DIR/type-check-1.rs:41:26 |
3 | | - | |
4 | | -LL | asm!("{}", const x); |
5 | | - | ^ non-constant value |
6 | | - | |
7 | | -help: consider using `const` instead of `let` |
8 | | - | |
9 | | -LL | const x: /* Type */ = 0; |
10 | | - | ~~~~~ ++++++++++++ |
11 | | - |
12 | | -error[E0435]: attempt to use a non-constant value in a constant |
13 | | - --> $DIR/type-check-1.rs:44:36 |
14 | | - | |
15 | | -LL | asm!("{}", const const_foo(x)); |
16 | | - | ^ non-constant value |
17 | | - | |
18 | | -help: consider using `const` instead of `let` |
19 | | - | |
20 | | -LL | const x: /* Type */ = 0; |
21 | | - | ~~~~~ ++++++++++++ |
22 | | - |
23 | | -error[E0435]: attempt to use a non-constant value in a constant |
24 | | - --> $DIR/type-check-1.rs:47:36 |
25 | | - | |
26 | | -LL | asm!("{}", const const_bar(x)); |
27 | | - | ^ non-constant value |
28 | | - | |
29 | | -help: consider using `const` instead of `let` |
30 | | - | |
31 | | -LL | const x: /* Type */ = 0; |
32 | | - | ~~~~~ ++++++++++++ |
33 | | - |
34 | 1 | error: invalid asm output |
35 | 2 | --> $DIR/type-check-1.rs:14:29 |
36 | 3 | | |
@@ -94,57 +61,6 @@ LL | asm!("{}", inout(reg) v[..]); |
94 | 61 | | |
95 | 62 | = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly |
96 | 63 |
|
97 | | -error: invalid type for `const` operand |
98 | | - --> $DIR/type-check-1.rs:55:20 |
99 | | - | |
100 | | -LL | asm!("{}", const 0f32); |
101 | | - | ^^^^^^---- |
102 | | - | | |
103 | | - | is an `f32` |
104 | | - | |
105 | | - = help: `const` operands must be of an integer type |
106 | | - |
107 | | -error: invalid type for `const` operand |
108 | | - --> $DIR/type-check-1.rs:57:20 |
109 | | - | |
110 | | -LL | asm!("{}", const 0 as *mut u8); |
111 | | - | ^^^^^^------------ |
112 | | - | | |
113 | | - | is a `*mut u8` |
114 | | - | |
115 | | - = help: `const` operands must be of an integer type |
116 | | - |
117 | | -error: invalid type for `const` operand |
118 | | - --> $DIR/type-check-1.rs:60:20 |
119 | | - | |
120 | | -LL | asm!("{}", const &0); |
121 | | - | ^^^^^^-- |
122 | | - | | |
123 | | - | is a `&i32` |
124 | | - | |
125 | | - = help: `const` operands must be of an integer type |
126 | | - |
127 | | -error: invalid type for `const` operand |
128 | | - --> $DIR/type-check-1.rs:70:19 |
129 | | - | |
130 | | -LL | global_asm!("{}", const 0f32); |
131 | | - | ^^^^^^---- |
132 | | - | | |
133 | | - | is an `f32` |
134 | | - | |
135 | | - = help: `const` operands must be of an integer type |
136 | | - |
137 | | -error: invalid type for `const` operand |
138 | | - --> $DIR/type-check-1.rs:72:19 |
139 | | - | |
140 | | -LL | global_asm!("{}", const 0 as *mut u8); |
141 | | - | ^^^^^^------------ |
142 | | - | | |
143 | | - | is a `*mut u8` |
144 | | - | |
145 | | - = help: `const` operands must be of an integer type |
146 | | - |
147 | | -error: aborting due to 16 previous errors |
| 64 | +error: aborting due to 8 previous errors |
148 | 65 |
|
149 | | -Some errors have detailed explanations: E0277, E0435. |
150 | | -For more information about an error, try `rustc --explain E0277`. |
| 66 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments