diff options
| author | bors <bors@rust-lang.org> | 2024-01-24 18:31:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-24 18:31:47 +0000 |
| commit | a27ad23393060264b5be0a09b73d17a843d69689 (patch) | |
| tree | 330fce1a4e2ac596f91856c83d353b38580c0bde /tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs | |
| parent | e8b6db72515807fa301ff8d39b8ac058d5653fd1 (diff) | |
| parent | 3a638f72867eb2f24b7de3529d4354b08741b24c (diff) | |
| download | rust-a27ad23393060264b5be0a09b73d17a843d69689.tar.gz rust-a27ad23393060264b5be0a09b73d17a843d69689.zip | |
Auto merge of #120269 - oli-obk:revert_trait_obj_upcast_stabilization, r=jackh726
[beta] Revert trait obj upcast stabilization backport of https://github.com/rust-lang/rust/pull/120233 note that this is not yet approved for beta backport
Diffstat (limited to 'tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs')
| -rw-r--r-- | tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs b/tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs index 2c9126c863d..8a90a09ff04 100644 --- a/tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs +++ b/tests/ui/traits/trait-upcasting/migrate-lint-different-substs.rs @@ -10,6 +10,7 @@ trait Foo: Bar<i32> { impl<'a> Deref for dyn Foo + 'a { //~^ WARN this `Deref` implementation is covered by an implicit supertrait coercion + //~| WARN this will change its meaning in a future release! type Target = dyn Bar<u32> + 'a; fn deref(&self) -> &Self::Target { |
