Skip to content

Commit bea3af4

Browse files
authored
Update semver tests for 1.89 (#15816)
This updates the tests where messages have changed in 1.89.
2 parents e87ec1a + 5f972d1 commit bea3af4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/src/reference/semver.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ fn main() {
577577
let p = Packed { a: 1, b: 2 };
578578
// Some assumption about the size of the type.
579579
// 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
581581
}
582582
```
583583

@@ -696,7 +696,7 @@ fn main() {
696696
let p = Packed { a: 1, b: 2 };
697697
// Some assumption about the size of the type.
698698
// 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
700700
}
701701
```
702702

@@ -734,7 +734,7 @@ fn main() {
734734
let p = Packed { a: 1, b: 2 };
735735
// Some assumption about the size of the type.
736736
// 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
738738
}
739739
```
740740

0 commit comments

Comments
 (0)