]> git.proxmox.com Git - rustc.git/blame - src/vendor/rustc-rayon/tests/compile-fail/README.md
New upstream version 1.31.0+dfsg1
[rustc.git] / src / vendor / rustc-rayon / tests / compile-fail / README.md
CommitLineData
94b46f34
XL
1This directory contains test files that are **not expected to
2compile**. It is useful for writing tests that things which ought not
3to type-check do not, in fact, type-check.
4
5To write a test, just write a `.rs` file using Rayon. Then, for each
6compilation error, write a `//~ ERROR E123` annotation on the line
7where the error occurs. `E123` should be the error code that is issued
8by rustc. This should be reasonably robust against future compiler
9changes, though in some cases the errors may start showing up on
10different lines etc as compiler heuristics change.
11