File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,19 @@ pub extern crate core as _core;
1111/// # Example
1212///
1313/// ```
14- /// #[macro_use]
15- /// extern crate static_assertions;
16- ///
14+ /// # #[macro_use]
15+ /// # extern crate static_assertions;
1716/// struct Byte(u8);
1817///
19- /// fn main() {
20- /// assert_eq_size!(Byte, u8);
21- /// // assert_eq_size!(Byte, u16); // Fails to compile
18+ /// # fn main() {
19+ /// assert_eq_size!(Byte, u8);
2220///
23- /// // Supports unlimited arguments:
24- /// assert_eq_size!([Byte; 4], [u16; 2], u32);
25- /// }
21+ /// // Supports unlimited arguments:
22+ /// assert_eq_size!([Byte; 4], [u16; 2], u32);
23+ ///
24+ /// // Fails to compile:
25+ /// // assert_eq_size!(Byte, u16);
26+ /// # }
2627/// ```
2728#[ macro_export]
2829macro_rules! assert_eq_size {
You can’t perform that action at this time.
0 commit comments