diff options
| author | Martin Pool <mbp@sourcefrog.net> | 2015-11-30 07:42:14 -0800 |
|---|---|---|
| committer | Martin Pool <mbp@sourcefrog.net> | 2015-11-30 07:42:14 -0800 |
| commit | 4a63d9fa2c21f55bc6f608f80abba028e0ddc741 (patch) | |
| tree | 35527d88d891075a38fcf6b20deecc6445de0065 | |
| parent | fd2626cc3f5c3652b5a9b4d3b7f850ff2e8e8590 (diff) | |
| download | rust-4a63d9fa2c21f55bc6f608f80abba028e0ddc741.tar.gz rust-4a63d9fa2c21f55bc6f608f80abba028e0ddc741.zip | |
Remove broken explicit coercion example
| -rw-r--r-- | src/doc/book/casting-between-types.md | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/doc/book/casting-between-types.md b/src/doc/book/casting-between-types.md index e2b114b7e54..2339fe60bf0 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: |
