@@ -33,15 +33,6 @@ LL | asm!("{}", sym x);
33
33
|
34
34
= help: `sym` operands must refer to either a function or a static
35
35
36
- error: generic parameters may not be used in const operations
37
- --> $DIR/type-check-1.rs:65:30
38
- |
39
- LL | asm!("{}", sym generic::<T>);
40
- | ^ cannot perform const operation using `T`
41
- |
42
- = note: type parameters may not be used in const expressions
43
- = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
44
-
45
36
error[E0308]: mismatched types
46
37
--> $DIR/type-check-1.rs:55:26
47
38
|
@@ -109,21 +100,21 @@ LL | asm!("{}", inout(reg) v[..]);
109
100
= note: all inline asm arguments must have a statically known size
110
101
111
102
error[E0308]: mismatched types
112
- --> $DIR/type-check-1.rs:74 :25
103
+ --> $DIR/type-check-1.rs:73 :25
113
104
|
114
105
LL | global_asm!("{}", const 0f32);
115
106
| ^^^^ expected integer, found `f32`
116
107
117
108
error[E0308]: mismatched types
118
- --> $DIR/type-check-1.rs:76 :25
109
+ --> $DIR/type-check-1.rs:75 :25
119
110
|
120
111
LL | global_asm!("{}", const 0 as *mut u8);
121
112
| ^^^^^^^^^^^^ expected integer, found *-ptr
122
113
|
123
114
= note: expected type `{integer}`
124
115
found raw pointer `*mut u8`
125
116
126
- error: aborting due to 15 previous errors
117
+ error: aborting due to 14 previous errors
127
118
128
119
Some errors have detailed explanations: E0277, E0308, E0435.
129
120
For more information about an error, try `rustc --explain E0277`.
0 commit comments