//! The promise is enforced by rustc, and the error has to name the word. //! //! An ordinary test cannot assert this: what is being checked is which error //! comes out, and a missing shim and a wrong argument both fail to compile. The //! difference is that one names `label_constant`, and `constant` is the word to //! go and write on `label`. #[test] fn an_include_of_a_shape_that_promised_nothing_is_refused() { let cases = trybuild::TestCases::new(); cases.compile_fail("tests/ui/unpromised_include.rs"); }