Closed
Description
Code
pub fn main() {
let zero = assert_eq::<()>();
}
Current output
error[E0423]: expected function, found macro `assert_eq`
--> src/main.rs:2:16
|
2 | let zero = assert_eq::<()>();
| ^^^^^^^^^^^^^^^ not a function
|
help: use `!` to invoke the macro
|
2 | let zero = assert_eq::<()>!();
| +
For more information about this error, try `rustc --explain E0423`.
error: could not compile `playground` (bin "playground") due to previous error
Desired output
No response
Rationale and extra context
No response
Other cases
No response
Anything else?
No response