@@ -33,15 +33,6 @@ LL | asm!("{}", sym x);
3333 |
3434 = help: `sym` operands must refer to either a function or a static
3535
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-
4536error[E0308]: mismatched types
4637 --> $DIR/type-check-1.rs:55:26
4738 |
@@ -109,21 +100,21 @@ LL | asm!("{}", inout(reg) v[..]);
109100 = note: all inline asm arguments must have a statically known size
110101
111102error[E0308]: mismatched types
112- --> $DIR/type-check-1.rs:74 :25
103+ --> $DIR/type-check-1.rs:73 :25
113104 |
114105LL | global_asm!("{}", const 0f32);
115106 | ^^^^ expected integer, found `f32`
116107
117108error[E0308]: mismatched types
118- --> $DIR/type-check-1.rs:76 :25
109+ --> $DIR/type-check-1.rs:75 :25
119110 |
120111LL | global_asm!("{}", const 0 as *mut u8);
121112 | ^^^^^^^^^^^^ expected integer, found *-ptr
122113 |
123114 = note: expected type `{integer}`
124115 found raw pointer `*mut u8`
125116
126- error: aborting due to 15 previous errors
117+ error: aborting due to 14 previous errors
127118
128119Some errors have detailed explanations: E0277, E0308, E0435.
129120For more information about an error, try `rustc --explain E0277`.
0 commit comments