1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // regression test for issue 11256
12 #![crate_type="foo"] //~ ERROR invalid `crate_type` value
14 // Tests for suggestions (#53958)
16 #![crate_type="statoclib"]
17 //~^ ERROR invalid `crate_type` value
18 //~| HELP did you mean
19 //~| SUGGESTION staticlib
21 #![crate_type="procmacro"]
22 //~^ ERROR invalid `crate_type` value
23 //~| HELP did you mean
24 //~| SUGGESTION proc-macro
26 #![crate_type="static-lib"]
27 //~^ ERROR invalid `crate_type` value
28 //~| HELP did you mean
29 //~| SUGGESTION staticlib
31 #![crate_type="drylib"]
32 //~^ ERROR invalid `crate_type` value
33 //~| HELP did you mean
37 //~^ ERROR invalid `crate_type` value
38 //~| HELP did you mean
42 //~^ ERROR invalid `crate_type` value
43 //~| HELP did you mean
47 //~^ ERROR invalid `crate_type` value
48 //~| HELP did you mean
51 #![crate_type="cdalib"]
52 //~^ ERROR invalid `crate_type` value
53 //~| HELP did you mean
54 //~| SUGGESTION cdylib