Rollup merge of #125659 - tbu-:pr_rm_isize, r=pnkfelix

Remove usage of `isize` in example

`isize` is a rare integer type, replace it with a more common one.
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-06-11 21:27:45 +01:00 committed by GitHub
commit ecc0046fb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,7 +142,7 @@ fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) {
/// ```rust,compile_fail
/// #![deny(box_pointers)]
/// struct Foo {
/// x: Box<isize>,
/// x: Box<i32>,
/// }
/// ```
///