// Copyright 2014 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 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // These tests should all fail to compile, but should not ICE or give // unreasonable error messages. #![feature(phase)] #[phase(plugin)] extern crate hoare; //#[precond=""] fn test_bad_str_1() {} #[precond="foo"] fn test_bad_str_2() {} #[precond="5"] fn test_bad_str_3() {} #[precond="()"] fn test_bad_str_4() {} fn main() {}