diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-09-09 08:50:04 -0400 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2020-09-12 13:12:14 -0500 |
| commit | 27d5948e409caaa95e95b7e381f7777a3432d9c6 (patch) | |
| tree | dc7e4387de7c54889aa2b6242ee5631dda14d8c1 /src/doc/rustc-dev-guide | |
| parent | cae32c9e598a46f107a69d99327b68624e5f792b (diff) | |
| download | rust-27d5948e409caaa95e95b7e381f7777a3432d9c6.tar.gz rust-27d5948e409caaa95e95b7e381f7777a3432d9c6.zip | |
Note that the default is 2015
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/tests/adding.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/adding.md b/src/doc/rustc-dev-guide/src/tests/adding.md index 57ee49338b7..4576e377e02 100644 --- a/src/doc/rustc-dev-guide/src/tests/adding.md +++ b/src/doc/rustc-dev-guide/src/tests/adding.md @@ -179,7 +179,8 @@ source. supposed to error out. * `compile-flags` passes extra command-line args to the compiler, e.g. `compile-flags -g` which forces debuginfo to be enabled. -* `edition` controls the edition the test should be compiled with: `// edition:2018` +* `edition` controls the edition the test should be compiled with (defaults to 2015). + Example usage: `// edition:2018` * `should-fail` indicates that the test should fail; used for "meta testing", where we test the compiletest program itself to check that it will generate errors in appropriate scenarios. This header is |
