]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid_crate_type_syntax.stderr
Rollup merge of #53344 - frewsxcv:frewsxcv-doc-ptr, r=ollie27
[rust.git] / src / test / ui / invalid_crate_type_syntax.stderr
1 error: `crate_type` requires a value
2   --> $DIR/invalid_crate_type_syntax.rs:12:1
3    |
4 LL | #![crate_type(lib)]  //~ ERROR `crate_type` requires a value
5    | ^^^^^^^^^^^^^^^^^^^
6    |
7    = note: for example: `#![crate_type="lib"]`
8
9 error[E0601]: `main` function not found in crate `invalid_crate_type_syntax`
10    |
11    = note: consider adding a `main` function to `$DIR/invalid_crate_type_syntax.rs`
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0601`.