about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2024-12-16 03:51:01 +0100
committerWaffle Lapkin <waffle.lapkin@gmail.com>2025-02-06 23:44:23 +0100
commit9e6d0b3700891b8a99ad762ba3de9e08dfb60b1d (patch)
treea21e5f34c811e4086502a60b2b18eebc6a961cb4
parente9d5d1113f9a5ca0ace2d1b13b1525f43ec97211 (diff)
downloadrust-9e6d0b3700891b8a99ad762ba3de9e08dfb60b1d.tar.gz
rust-9e6d0b3700891b8a99ad762ba3de9e08dfb60b1d.zip
remove unstable book entry for `feature(trait_upcasting)`
-rw-r--r--src/doc/unstable-book/src/language-features/trait-upcasting.md26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/doc/unstable-book/src/language-features/trait-upcasting.md b/src/doc/unstable-book/src/language-features/trait-upcasting.md
deleted file mode 100644
index a5f99cc86f2..00000000000
--- a/src/doc/unstable-book/src/language-features/trait-upcasting.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# `trait_upcasting`
-
-The tracking issue for this feature is: [#65991]
-
-[#65991]: https://github.com/rust-lang/rust/issues/65991
-
-------------------------
-
-The `trait_upcasting` feature adds support for trait upcasting coercion. This allows a
-trait object of type `dyn Bar` to be cast to a trait object of type `dyn Foo`
-so long as `Bar: Foo`.
-
-```rust,edition2018
-#![feature(trait_upcasting)]
-
-trait Foo {}
-
-trait Bar: Foo {}
-
-impl Foo for i32 {}
-
-impl<T: Foo + ?Sized> Bar for T {}
-
-let bar: &dyn Bar = &123;
-let foo: &dyn Foo = bar;
-```