File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ fn main() {
577
577
let p = Packed { a: 1, b: 2 };
578
578
// Some assumption about the size of the type.
579
579
// Without `packed`, this fails since the size is 4.
580
- const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: evaluation of constant value failed
580
+ const _: () = assert!(std::mem::size_of::<Packed>() == 3); // Error: assertion failed
581
581
}
582
582
```
583
583
@@ -696,7 +696,7 @@ fn main() {
696
696
let p = Packed { a: 1, b: 2 };
697
697
// Some assumption about the size of the type.
698
698
// The alignment has changed from 8 to 4.
699
- const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value failed
699
+ const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion failed
700
700
}
701
701
```
702
702
@@ -734,7 +734,7 @@ fn main() {
734
734
let p = Packed { a: 1, b: 2 };
735
735
// Some assumption about the size of the type.
736
736
// The alignment has changed from 8 to 4.
737
- const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: evaluation of constant value failed
737
+ const _: () = assert!(std::mem::align_of::<Packed>() == 8); // Error: assertion failed
738
738
}
739
739
```
740
740
You can’t perform that action at this time.
0 commit comments