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: