]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid/invalid-crate-type.rs
Suggest valid crate type if invalid
[rust.git] / src / test / ui / invalid / invalid-crate-type.rs
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.
4 //
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.
10
11 // regression test for issue 11256
12 #![crate_type="foo"]    //~ ERROR invalid `crate_type` value
13
14 // Tests for suggestions (#53958)
15
16 #![crate_type="statoclib"]
17 //~^ ERROR invalid `crate_type` value
18 //~| HELP did you mean
19 //~| SUGGESTION staticlib
20
21 #![crate_type="procmacro"]
22 //~^ ERROR invalid `crate_type` value
23 //~| HELP did you mean
24 //~| SUGGESTION proc-macro
25
26 #![crate_type="static-lib"]
27 //~^ ERROR invalid `crate_type` value
28 //~| HELP did you mean
29 //~| SUGGESTION staticlib
30
31 #![crate_type="drylib"]
32 //~^ ERROR invalid `crate_type` value
33 //~| HELP did you mean
34 //~| SUGGESTION dylib
35
36 #![crate_type="dlib"]
37 //~^ ERROR invalid `crate_type` value
38 //~| HELP did you mean
39 //~| SUGGESTION rlib
40
41 #![crate_type="lob"]
42 //~^ ERROR invalid `crate_type` value
43 //~| HELP did you mean
44 //~| SUGGESTION lib
45
46 #![crate_type="bon"]
47 //~^ ERROR invalid `crate_type` value
48 //~| HELP did you mean
49 //~| SUGGESTION bin
50
51 #![crate_type="cdalib"]
52 //~^ ERROR invalid `crate_type` value
53 //~| HELP did you mean
54 //~| SUGGESTION cdylib
55
56 fn main() {
57     return
58 }