Rust proc-macro evaluate ident on compile time and throw an error
Опубликовано: 19 Октябрь 2024 на канале: Memory Leak
125
7
How to evaluate proc-macro identifier on compile time and throw an error by using a simple trick with const and assert. This will work for const fn and const but it will not for fn.