Skip to content

Commit c0d8edd

Browse files
committed
Document the special code block annotations.
1 parent 37c48b0 commit c0d8edd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/semver-check/src/main.rs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
//! An example with the word "MINOR" at the top is expected to successfully
88
//! build against the before and after. Otherwise it should fail. A comment of
99
//! "// Error:" will check that the given message appears in the error output.
10+
//!
11+
//! The code block can also include the annotations:
12+
//! - `run-fail`: The test should fail at runtime, not compiletime.
13+
//! - `dont-deny`: By default tests have a `#![deny(warnings)]`. This option
14+
//! avoids this attribute. Note that `#![allow(unused)]` is always added.
1015
1116
use std::error::Error;
1217
use std::fs;

0 commit comments

Comments
 (0)