blob: ff047a28adcf48410e21ea996c94bdb01842430b [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/issue-26480.rs:26:19
|
LL | $arr.len() * size_of($arr[0])); //~ ERROR mismatched types
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
...
LL | write!(hello);
| -------------- in this macro invocation
error[E0605]: non-primitive cast: `{integer}` as `()`
--> $DIR/issue-26480.rs:32:19
|
LL | ($x:expr) => ($x as ()) //~ ERROR non-primitive cast
| ^^^^^^^^
...
LL | cast!(2);
| --------- in this macro invocation
|
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
error: aborting due to 2 previous errors
Some errors occurred: E0308, E0605.
For more information about an error, try `rustc --explain E0308`.