David Tolnay | 3f7d9d3 | 2019-03-10 00:14:28 -0800 | [diff] [blame] | 1 | #![cfg(syn_disable_nightly_tests)] |
| 2 | |
| 3 | extern crate colored; |
| 4 | |
| 5 | use colored::Colorize; |
| 6 | |
| 7 | const MSG: &str = " |
| 8 | ‖ |
| 9 | ‖ WARNING: |
| 10 | ‖ This is not a nightly compiler so not all tests were able to |
| 11 | ‖ run. Syn includes tests that compare Syn's parser against the |
| 12 | ‖ compiler's parser, which requires access to unstable libsyntax |
| 13 | ‖ data structures and a nightly compiler. |
| 14 | ‖ |
| 15 | "; |
| 16 | |
| 17 | #[test] |
| 18 | fn notice() { |
| 19 | panic!(MSG |
| 20 | .replace("WARNING", &"WARNING".bold().to_string()) |
| 21 | .yellow() |
| 22 | .to_string()); |
| 23 | } |