mirror of https://github.com/rust-lang/reference
Revert "Put slicing syntax behind a feature gate."
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
This commit is contained in:
parent
f12a8baf47
commit
566a0d6473
|
@ -3828,7 +3828,7 @@ type signature of `print`, and the cast expression in `main`.
|
|||
Within the body of an item that has type parameter declarations, the names of
|
||||
its type parameters are types:
|
||||
|
||||
```ignore
|
||||
```
|
||||
fn map<A: Clone, B: Clone>(f: |A| -> B, xs: &[A]) -> Vec<B> {
|
||||
if xs.len() == 0 {
|
||||
return vec![];
|
||||
|
|
Loading…
Reference in New Issue