The Rust Programming Language Forum
Stabilization of panic! in const context brings us static_assert possibility
code review
p-kraszewski
December 5, 2021, 1:38pm
4
... which I did right now. See my
pakr-assert-size
topic.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Ensure that struct T has size n, at compile time?
9
3782
September 12, 2021
I created `#[assert_size(usize)]` and #[assert_size_fits(usize)] macros for compile-time check of struct sizes
code review
2
746
March 5, 2022
Compile-time generic type size check
help
9
2913
July 26, 2020
Can somebody point me to the Rust compiler internals documentation?
help
7
1363
January 12, 2023
Does anyone use panic!(expr) (i.e. panicked at Box<Any>)
3
583
September 26, 2019