Auto merge of #30113 - sourcefrog:doc-casts, r=steveklabnik

Sorry, thanks to @Ms2ger for pointing this out in https://github.com/rust-lang/rust/pull/30088#discussion_r46142903
This commit is contained in:
bors 2015-11-30 18:41:18 +00:00
commit 7fa4d998df

View file

@ -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: