2012-12-10 19:32:48 -06:00
|
|
|
// 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.
|
|
|
|
|
2014-04-14 10:30:31 -05:00
|
|
|
#![allow(dead_assignment)]
|
|
|
|
#![allow(unused_variable)]
|
2013-08-17 10:37:42 -05:00
|
|
|
|
2011-07-01 13:33:15 -05:00
|
|
|
// error-pattern:wooooo
|
2012-03-22 10:39:41 -05:00
|
|
|
fn main() {
|
2013-08-17 10:37:42 -05:00
|
|
|
let mut a = 1;
|
|
|
|
if 1 == 1 { a = 2; }
|
2014-05-16 12:45:16 -05:00
|
|
|
fail!(format_strbuf!("woooo{}", "o"));
|
2012-03-22 10:39:41 -05:00
|
|
|
}
|