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:
commit
7fa4d998df
1 changed files with 0 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue