// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
-#![feature(slicing_syntax)]
-
use std::{cmp, iter, mem};
use std::thread::Thread;
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
-#![feature(slicing_syntax)]
-
use std::cmp::min;
use std::io::{stdout, IoResult};
use std::iter::repeat;
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
// OF THE POSSIBILITY OF SUCH DAMAGE.
-#![feature(slicing_syntax)]
-
use std::cmp::min;
use std::io::{BufferedWriter, File};
use std::io;
// multi tasking k-nucleotide
-#![feature(slicing_syntax)]
-
use std::ascii::{AsciiExt, OwnedAsciiExt};
use std::cmp::Ordering::{self, Less, Greater, Equal};
use std::collections::HashMap;
// ignore-android see #10393 #13206
-#![feature(slicing_syntax)]
-
use std::ascii::OwnedAsciiExt;
use std::iter::repeat;
use std::slice;
// ignore-stage1
// ignore-cross-compile #12102
-#![feature(plugin, slicing_syntax)]
-
extern crate regex;
use std::io;
// ignore-android see #10393 #13206
-#![feature(slicing_syntax, unboxed_closures)]
+#![feature(unboxed_closures)]
extern crate libc;
// error-pattern: transmute called on types with different size
-#![feature(slicing_syntax)]
-
use std::mem;
#[repr(packed)]
// except according to those terms.
// Test range syntax - type errors.
-#![feature(slicing_syntax)]
pub fn main() {
// Mixed types.
// except according to those terms.
// Test range syntax - borrow errors.
-#![feature(slicing_syntax)]
pub fn main() {
let r = {
// Test that slicing syntax gives errors if we have not implemented the trait.
-#![feature(slicing_syntax)]
-
struct Foo;
fn main() {
// Test slicing expressions doesn't defeat the borrow checker.
-#![feature(slicing_syntax)]
-
fn main() {
let y;
{
// Test mutability and slicing syntax.
-#![feature(slicing_syntax)]
-
fn main() {
let x: &[int] = &[1, 2, 3, 4, 5];
// Can't mutably slice an immutable slice
// Test mutability and slicing syntax.
-#![feature(slicing_syntax)]
-
fn main() {
let x: &[int] = &[1, 2, 3, 4, 5];
// Immutable slices are not mutable.
// lldb-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }]
#![allow(unused_variables)]
-#![feature(slicing_syntax)]
#![omit_gdb_pretty_printer_section]
struct AStruct {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
fn main() {
let mut array = [1, 2, 3];
let pie_slice = &array[1..2];
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
fn main() {
let s: &[int] = &[0, 1, 2, 3, 4];
let ss: &&[int] = &s;
// A reduced version of the rustbook ice. The problem this encountered
// had to do with trans ignoring binders.
-#![feature(slicing_syntax)]
#![feature(associated_types)]
#![feature(macro_rules)]
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
fn vec_peek<'r, T>(v: &'r [T]) -> &'r [T] {
&v[1..5]
}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
fn broken(v: &[u8], i: uint, j: uint) -> &[u8] { &v[i..j] }
pub fn main() {}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
fn assert_repr_eq<T: std::fmt::Show>(obj : T, expected : String) {
assert_eq!(expected, format!("{:?}", obj));
}
// Test range syntax.
-#![feature(slicing_syntax)]
-
fn foo() -> int { 42 }
pub fn main() {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(slicing_syntax)]
-
pub fn main() {
let x = [ [true]; 512 ];
let y = [ 0i; 1 ];
// Test slicing expressions on slices and Vecs.
-#![feature(slicing_syntax)]
-
fn main() {
let x: &[int] = &[1, 2, 3, 4, 5];
let cmp: &[int] = &[1, 2, 3, 4, 5];
// Test that if a slicing expr[..] fails, the correct cleanups happen.
-#![feature(slicing_syntax)]
-
use std::thread::Thread;
struct Foo;
// Test that if a slicing expr[..] fails, the correct cleanups happen.
-#![feature(slicing_syntax)]
-
use std::thread::Thread;
struct Foo;
// Test slicing sugar.
-#![feature(slicing_syntax)]
#![feature(associated_types)]
extern crate core;