// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
check(s.(9) == u8('d'));
}
// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
check(s.(9) == ('d' as u8));
}
// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
assert (s.(9) == ('d' as u8));
}
// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
check(s.(9) == ('d' as u8));
}
// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
assert (s.(9) == ('d' as u8));
}
// -*- rust -*-
fn main() {
let str a = "hello";
let str b = "world";
let str s = a + b;
log s;
assert (s.(9) == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: str = "hello";
let b: str = "world";
let s: str = a + b;
log s;
assert (s.(9) == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: str = "hello";
let b: str = "world";
let s: str = a + b;
log s;
assert (s[9] == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: str = "hello";
let b: str = "world";
let s: str = a + b;
log_full(core::debug, s);
assert (s[9] == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: str = "hello";
let b: str = "world";
let s: str = a + b;
log(debug, s);
assert (s[9] == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
log(debug, s);
assert (s[9] == 'd' as u8);
}
// -*- rust -*-
fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
log(debug, copy s);
assert (s[9] == 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
log(debug, copy s);
assert (s[9] == 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
log(debug, copy s);
assert (s[9] == 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
log(debug, copy s);
fail_unless!((s[9] == 'd' as u8));
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
debug!(copy s);
fail_unless!((s[9] == 'd' as u8));
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
debug!(s.clone());
fail_unless!((s[9] == 'd' as u8));
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
debug!(s.clone());
assert!((s[9] == 'd' as u8));
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
debug!(s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
info!(s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
info2!("{}", s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
info!("{}", s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
info!("{}", s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: ~str = ~"hello";
let b: ~str = ~"world";
let s: ~str = a + b;
println!("{}", s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: ~str = "hello".to_owned();
let b: ~str = "world".to_owned();
let s: ~str = a + b;
println!("{}", s.clone());
assert_eq!(s[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: StrBuf = "hello".to_strbuf();
let b: StrBuf = "world".to_strbuf();
let s: StrBuf = format_strbuf!("{}{}", a, b);
println!("{}", s.clone());
assert_eq!(s.as_slice()[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: String = "hello".to_strbuf();
let b: String = "world".to_strbuf();
let s: String = format_strbuf!("{}{}", a, b);
println!("{}", s.clone());
assert_eq!(s.as_slice()[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: String = "hello".to_string();
let b: String = "world".to_string();
let s: String = format_strbuf!("{}{}", a, b);
println!("{}", s.clone());
assert_eq!(s.as_slice()[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: String = "hello".to_string();
let b: String = "world".to_string();
let s: String = format!("{}{}", a, b);
println!("{}", s.clone());
assert_eq!(s.as_slice()[9], 'd' as u8);
}
// 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.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub fn main() {
let a: String = "hello".to_string();
let b: String = "world".to_string();
let s: String = format!("{}{}", a, b);
println!("{}", s.clone());
assert_eq!(s.as_bytes()[9], 'd' as u8);
}