diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-14 05:05:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 05:05:51 +0200 |
| commit | 85180cd365f2a518183b24468fb5754f6c842e0f (patch) | |
| tree | 8dc6a0d572ac4c08c2cd0b63220a895393c66276 /tests/ui/cast | |
| parent | 2cb59087dbbbacbe173414e43c12bf046d84224c (diff) | |
| parent | c6fb0f344e0c6edb34966b1d73c3c1d8c5afbe34 (diff) | |
| download | rust-85180cd365f2a518183b24468fb5754f6c842e0f.tar.gz rust-85180cd365f2a518183b24468fb5754f6c842e0f.zip | |
Rollup merge of #128759 - notriddle:notriddle/spec-to-string, r=workingjubilee,compiler-errors
alloc: add ToString specialization for `&&str` Fixes #128690
Diffstat (limited to 'tests/ui/cast')
| -rw-r--r-- | tests/ui/cast/ptr-to-trait-obj-different-args.stderr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/cast/ptr-to-trait-obj-different-args.stderr b/tests/ui/cast/ptr-to-trait-obj-different-args.stderr index b04289ae747..8e60ca42f0a 100644 --- a/tests/ui/cast/ptr-to-trait-obj-different-args.stderr +++ b/tests/ui/cast/ptr-to-trait-obj-different-args.stderr @@ -14,6 +14,7 @@ LL | let y: *const dyn Trait<Y> = x as _; | = note: expected trait object `dyn Trait<X>` found trait object `dyn Trait<Y>` + = help: `dyn Trait<Y>` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well error[E0308]: mismatched types --> $DIR/ptr-to-trait-obj-different-args.rs:27:34 @@ -25,6 +26,7 @@ LL | let _: *const dyn Trait<T> = x as _; | = note: expected trait object `dyn Trait<X>` found trait object `dyn Trait<T>` + = help: `dyn Trait<T>` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well error[E0308]: mismatched types --> $DIR/ptr-to-trait-obj-different-args.rs:28:34 @@ -37,6 +39,7 @@ LL | let _: *const dyn Trait<X> = t as _; | = note: expected trait object `dyn Trait<T>` found trait object `dyn Trait<X>` + = help: `dyn Trait<X>` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well error[E0308]: mismatched types --> $DIR/ptr-to-trait-obj-different-args.rs:36:5 |
