We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isize
1 parent c0c2eed commit 833c374Copy full SHA for 833c374
tests/ui/dyn-star/error.rs
@@ -6,7 +6,7 @@ use std::fmt::Debug;
6
trait Foo {}
7
8
fn make_dyn_star() {
9
- let i = 42;
+ let i = 42usize;
10
let dyn_i: dyn* Foo = i; //~ ERROR trait bound `usize: Foo` is not satisfied
11
}
12
tests/ui/dyn-star/float-as-dyn-star.stderr
@@ -14,7 +14,9 @@ LL | f32::from_bits(0x1) as f64
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `f64` needs to be a pointer-like type
15
|
16
= help: the trait `PointerLike` is not implemented for `f64`
17
- = help: the trait `PointerLike` is implemented for `usize`
+ = help: the following other types implement trait `PointerLike`:
18
+ isize
19
+ usize
20
21
error: aborting due to 1 previous error; 1 warning emitted
22
0 commit comments