fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: missing documentation for a function 2 --> $DIR/check-fail.rs:13:1 3 | 4LL | pub fn foo() {} 5 | ^^^^^^^^^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/check-fail.rs:4:9 9 | 10LL | #![deny(missing_docs)] 11 | ^^^^^^^^^^^^ 12 13error: missing code example in this documentation 14 --> $DIR/check-fail.rs:13:1 15 | 16LL | pub fn foo() {} 17 | ^^^^^^^^^^^^^^^ 18 | 19note: the lint level is defined here 20 --> $DIR/check-fail.rs:5:9 21 | 22LL | #![deny(rustdoc::missing_doc_code_examples)] 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 25error: unknown attribute `testharness`. Did you mean `test_harness`? 26 --> $DIR/check-fail.rs:8:1 27 | 28LL | / //! ```rust,testharness 29LL | | 30LL | | //! let x = 12; 31LL | | //! ``` 32 | |_______^ 33 | 34 = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function 35note: the lint level is defined here 36 --> $DIR/check-fail.rs:6:9 37 | 38LL | #![deny(rustdoc::all)] 39 | ^^^^^^^^^^^^ 40 = note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]` 41 42error: unknown attribute `testharness`. Did you mean `test_harness`? 43 --> $DIR/check-fail.rs:17:1 44 | 45LL | / /// hello 46LL | | 47LL | | /// 48LL | | /// ```rust,testharness 49LL | | /// let x = 12; 50LL | | /// ``` 51 | |_______^ 52 | 53 = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function 54 55error: aborting due to 4 previous errors 56