Skip to content

Commit 833c374

Browse files
committed
Update UI tests to account for the isize implementation.
1 parent c0c2eed commit 833c374

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ui/dyn-star/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::fmt::Debug;
66
trait Foo {}
77

88
fn make_dyn_star() {
9-
let i = 42;
9+
let i = 42usize;
1010
let dyn_i: dyn* Foo = i; //~ ERROR trait bound `usize: Foo` is not satisfied
1111
}
1212

tests/ui/dyn-star/float-as-dyn-star.stderr

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ LL | f32::from_bits(0x1) as f64
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `f64` needs to be a pointer-like type
1515
|
1616
= help: the trait `PointerLike` is not implemented for `f64`
17-
= help: the trait `PointerLike` is implemented for `usize`
17+
= help: the following other types implement trait `PointerLike`:
18+
isize
19+
usize
1820

1921
error: aborting due to 1 previous error; 1 warning emitted
2022

0 commit comments

Comments
 (0)