diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/E0705.rs | 7 | ||||
| -rw-r--r-- | src/test/ui/E0705.stderr | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/test/ui/E0705.rs b/src/test/ui/E0705.rs index 2e3492937ac..19f9ecc26cf 100644 --- a/src/test/ui/E0705.rs +++ b/src/test/ui/E0705.rs @@ -10,8 +10,11 @@ // compile-pass -#![feature(impl_header_lifetime_elision)] -//~^ WARN the feature `impl_header_lifetime_elision` is included in the Rust 2018 edition +// This is a stub feature that doesn't control anything, so to make tidy happy, +// gate-test-test_2018_feature + +#![feature(test_2018_feature)] +//~^ WARN the feature `test_2018_feature` is included in the Rust 2018 edition #![feature(rust_2018_preview)] fn main() {} diff --git a/src/test/ui/E0705.stderr b/src/test/ui/E0705.stderr index c40064d38d2..ccf8a04fdfc 100644 --- a/src/test/ui/E0705.stderr +++ b/src/test/ui/E0705.stderr @@ -1,6 +1,6 @@ -warning[E0705]: the feature `impl_header_lifetime_elision` is included in the Rust 2018 edition - --> $DIR/E0705.rs:13:12 +warning[E0705]: the feature `test_2018_feature` is included in the Rust 2018 edition + --> $DIR/E0705.rs:16:12 | -LL | #![feature(impl_header_lifetime_elision)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +LL | #![feature(test_2018_feature)] + | ^^^^^^^^^^^^^^^^^ |
