Skip to main content

max / quasi

522 B · 13 lines History Blame Raw
1 //! The promise is enforced by rustc, and the error has to name the word.
2 //!
3 //! An ordinary test cannot assert this: what is being checked is which error
4 //! comes out, and a missing shim and a wrong argument both fail to compile. The
5 //! difference is that one names `label_constant`, and `constant` is the word to
6 //! go and write on `label`.
7
8 #[test]
9 fn an_include_of_a_shape_that_promised_nothing_is_refused() {
10 let cases = trybuild::TestCases::new();
11 cases.compile_fail("tests/ui/unpromised_include.rs");
12 }
13