From 4a63d9fa2c21f55bc6f608f80abba028e0ddc741 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 30 Nov 2015 07:42:14 -0800 Subject: [PATCH] Remove broken explicit coercion example --- src/doc/book/casting-between-types.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/doc/book/casting-between-types.md b/src/doc/book/casting-between-types.md index e2b114b7e54b4..2339fe60bf00b 100644 --- a/src/doc/book/casting-between-types.md +++ b/src/doc/book/casting-between-types.md @@ -49,13 +49,6 @@ expression, `e as U2` is not necessarily so (in fact it will only be valid if A cast `e as U` is valid if `e` has type `T` and `T` *coerces* to `U`. -For example: - -```rust -let a = "hello"; -let b = a as String; -``` - ## Numeric casts A cast `e as U` is also valid in any of the following cases: