@@ -25,6 +25,21 @@ LL | let x = 0;
2525LL | asm!("{}", const const_bar(x));
2626 | ^ non-constant value
2727
28+ error[E0308]: mismatched types
29+ --> $DIR/type-check-1.rs:48:26
30+ |
31+ LL | asm!("{}", const 0f32);
32+ | ^^^^ expected integer, found `f32`
33+
34+ error[E0308]: mismatched types
35+ --> $DIR/type-check-1.rs:50:26
36+ |
37+ LL | asm!("{}", const 0 as *mut u8);
38+ | ^^^^^^^^^^^^ expected integer, found *-ptr
39+ |
40+ = note: expected type `{integer}`
41+ found raw pointer `*mut u8`
42+
2843error: invalid asm output
2944 --> $DIR/type-check-1.rs:10:29
3045 |
@@ -64,21 +79,6 @@ LL | asm!("{}", inout(reg) v[..]);
6479 = help: the trait `Sized` is not implemented for `[u64]`
6580 = note: all inline asm arguments must have a statically known size
6681
67- error[E0308]: mismatched types
68- --> $DIR/type-check-1.rs:48:26
69- |
70- LL | asm!("{}", const 0f32);
71- | ^^^^ expected integer, found `f32`
72-
73- error[E0308]: mismatched types
74- --> $DIR/type-check-1.rs:50:26
75- |
76- LL | asm!("{}", const 0 as *mut u8);
77- | ^^^^^^^^^^^^ expected integer, found *-ptr
78- |
79- = note: expected type `{integer}`
80- found raw pointer `*mut u8`
81-
8282error[E0308]: mismatched types
8383 --> $DIR/type-check-1.rs:60:25
8484 |
0 commit comments