mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 00:53:48 +00:00
Remove ancient emacs mode lines from test cases
These are relics that serve no purpose.
This commit is contained in:
parent
61f8c059c4
commit
9a773da681
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -3,7 +3,6 @@
|
||||
// xfail'd because the lint pass doesn't know to ignore standard library
|
||||
// stuff.
|
||||
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
@ -9,12 +8,12 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern:9:3
|
||||
// error-pattern:18:3
|
||||
|
||||
/* 1
|
||||
* 2
|
||||
* 3
|
||||
*/
|
||||
fn main() {
|
||||
%; // parse error on line 9, but is reported on line 6 instead.
|
||||
%; // parse error on line 18, but is reported on line 6 instead.
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
struct Pair<T, U> { a: T, b: U }
|
||||
struct Triple { x: int, y: int, z: int }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
if !false { assert!((true)); } else { assert!((false)); }
|
||||
if !true { assert!((false)); } else { assert!((true)); }
|
||||
|
@ -8,7 +8,6 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let i: int = 'Q' as int;
|
||||
assert_eq!(i, 0x51);
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
type t = int;
|
||||
|
||||
fn nothing() { }
|
||||
|
@ -11,5 +11,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() { if 1 == 1 { return; } info!("Paul is dead"); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn f(x: int) -> int {
|
||||
if x == 1 { return 1; } else { let y: int = 1 + f(x - 1); return y; }
|
||||
}
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let x: int = 15;
|
||||
let y: int = 5;
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn f() -> int {
|
||||
if true {
|
||||
let _s: ~str = ~"should not leak";
|
||||
|
@ -11,5 +11,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() { let x = { @100 }; assert!((*x == 100)); }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
type compare<'self, T> = &'self fn(~T, ~T) -> bool;
|
||||
|
||||
fn test_generic<T:Clone>(expected: ~T, eq: compare<T>) {
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-fast
|
||||
// -*- rust -*-
|
||||
|
||||
type compare<'self, T> = &'self fn(T, T) -> bool;
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,5 +11,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() { let x = { ~100 }; assert!((*x == 100)); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for standalone blocks as expressions
|
||||
fn test_basic() { let rs: bool = { true }; assert!((rs)); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions returning boxed types
|
||||
fn test_box() {
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-fast
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions with dynamic type sizes
|
||||
type compare<T> = &'static fn(T, T) -> bool;
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions returning nominal types
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions returning boxed types
|
||||
fn test_box() {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for if as expressions
|
||||
fn test_if() { let rs: bool = if true { true } else { false }; assert!((rs)); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for match as expressions resulting in boxed types
|
||||
fn test_box() {
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
type compare<T> = &'static fn(~T, ~T) -> bool;
|
||||
|
||||
fn test_generic<T:Clone>(expected: ~T, eq: compare<T>) {
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-fast
|
||||
// -*- rust -*-
|
||||
|
||||
type compare<'self, T> = &'self fn(T, T) -> bool;
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-fast
|
||||
// -*- rust -*-
|
||||
|
||||
type compare<T> = extern "Rust" fn(T, T) -> bool;
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for match as expressions resulting in struct types
|
||||
struct R { i: int }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for match as expressions resulting in boxed types
|
||||
fn test_box() {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Tests for using match as an expression
|
||||
fn test_basic() {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn f(x: int) -> int {
|
||||
// info!("in f:");
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn foo(_f: extern fn(int) -> int) { }
|
||||
|
||||
fn id(x: int) -> int { return x; }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn two(it: &fn(int)) { it(0); it(1); }
|
||||
|
||||
pub fn main() {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let mut sum: int = 0;
|
||||
do first_ten |i| { info!("main"); info!("{}", i); sum = sum + i; }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let f = "Makefile";
|
||||
let s = rustrt.str_buf(f);
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test FIXME #7308
|
||||
// -*- rust -*-
|
||||
|
||||
native mod libc = target_libc {
|
||||
fn open(int name, int flags, int mode) -> int;
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
libc.puts(rustrt.str_buf("hello, extern world 1"));
|
||||
libc.puts(rustrt.str_buf("hello, extern world 2"));
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// -*- rust -*-
|
||||
|
||||
native "cdecl" mod rustrt {
|
||||
fn str_buf(str s) -> int;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn f() -> int { return 42; }
|
||||
|
||||
pub fn main() {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Issue #45: infer type parameters in function applications
|
||||
fn id<T>(x: T) -> T { return x; }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
mod foomod {
|
||||
pub fn foo<T>() { }
|
||||
}
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
#[allow(dead_assignment)];
|
||||
|
||||
// -*- rust -*-
|
||||
fn id<T>(x: T) -> T { return x; }
|
||||
|
||||
struct Triple {x: int, y: int, z: int}
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
enum noption<T> { some(T), }
|
||||
|
||||
struct Pair { x: int, y: int }
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,5 +11,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() { let mut x: i32 = -400_i32; x = 0_i32 - x; assert!((x == 400_i32)); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let mut x: i8 = -12i8;
|
||||
let y: i8 = -12i8;
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
mod inner {
|
||||
pub mod inner2 {
|
||||
pub fn hello() { info!("hello, modular world"); }
|
||||
|
@ -11,5 +11,4 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() { let _x: int = 10; }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
mod foo {
|
||||
pub fn baz() { }
|
||||
}
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
struct Large {a: int,
|
||||
b: int,
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
enum color {
|
||||
rgb(int, int, int),
|
||||
rgba(int, int, int, int),
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// -*- rust -*-
|
||||
extern mod std;
|
||||
use std::gc;
|
||||
use std::gc::rustrt;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -8,7 +8,6 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// -*- rust -*-
|
||||
extern mod extra;
|
||||
|
||||
fn grow(v: &mut ~[int]) {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
pub fn main() {
|
||||
let mut x: int = 1;
|
||||
x *= 2;
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
#[allow(unreachable_code)];
|
||||
|
||||
// -*- rust -*-
|
||||
fn dont_call_me() { fail!(); info!("{}", 1); }
|
||||
|
||||
pub fn main() { }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
struct Point {x: int, y: int, z: int}
|
||||
|
||||
fn f(p: Point) { assert!((p.z == 12)); }
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
|
||||
// Issue #50.
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
struct Point {x: int, y: int}
|
||||
|
||||
pub fn main() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
struct Rect {x: int, y: int, w: int, h: int}
|
||||
|
||||
fn f(r: Rect, x: int, y: int, w: int, h: int) {
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
fn my_err(s: ~str) -> ! { error!("{:?}", s); fail!(); }
|
||||
|
||||
fn okay(i: uint) -> int {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
|
||||
|
||||
// -*- rust -*-
|
||||
enum clam<T> { a(T, int), b, }
|
||||
|
||||
fn uhoh<T>(v: ~[clam<T>]) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
@ -1,4 +1,3 @@
|
||||
// -*- rust -*-
|
||||
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user