Remove broken explicit coercion example
This commit is contained in:
parent
fd2626cc3f
commit
4a63d9fa2c
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