Put slicing syntax behind a feature gate.

[breaking-change]

If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
This commit is contained in:
Nick Cameron 2014-09-26 17:48:16 +12:00 committed by Manish Goregaokar
parent 5c2a580183
commit f12a8baf47
1 changed files with 1 additions and 1 deletions

View File

@ -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![];