max / quasi
| 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 | |
| 9 | |
| 10 | let cases = new; |
| 11 | cases.compile_fail; |
| 12 | |
| 13 |