blob: 87bac225b07ac463607a1495d116e3e91ce71c85 [file] [log] [blame]
David Tolnay3f7d9d32019-03-10 00:14:28 -08001#![cfg(syn_disable_nightly_tests)]
2
3extern crate colored;
4
5use colored::Colorize;
6
7const 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]
18fn notice() {
19 panic!(MSG
20 .replace("WARNING", &"WARNING".bold().to_string())
21 .yellow()
22 .to_string());
23}