diff options
| author | Douglas Campos <qmx@qmx.me> | 2018-07-16 15:09:01 +0000 |
|---|---|---|
| committer | Douglas Campos <qmx@qmx.me> | 2018-08-16 19:20:27 +0000 |
| commit | 232bd4c7ab919f9d423e65cd5d00c9c6d919f5af (patch) | |
| tree | 132c0b85678047390962a424ac86f47ca5d28378 | |
| parent | 28c5f3ea55e2de735cef32a1ac0d1dc18d926149 (diff) | |
| download | rust-232bd4c7ab919f9d423e65cd5d00c9c6d919f5af.tar.gz rust-232bd4c7ab919f9d423e65cd5d00c9c6d919f5af.zip | |
make the test only deal with edition flags
| -rw-r--r-- | src/test/ui/crate-in-paths.rs | 5 | ||||
| -rw-r--r-- | src/test/ui/crate-in-paths.stderr | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ui/crate-in-paths.rs b/src/test/ui/crate-in-paths.rs index cbf3fd070a0..ef01294f941 100644 --- a/src/test/ui/crate-in-paths.rs +++ b/src/test/ui/crate-in-paths.rs @@ -8,8 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(crate_visibility_modifier)] -#![feature(crate_in_paths)] +// edition:2018 + +#![feature(edition_2018_preview)] mod bar { crate struct Foo; diff --git a/src/test/ui/crate-in-paths.stderr b/src/test/ui/crate-in-paths.stderr index 29eac342c52..5bb1a28ebb8 100644 --- a/src/test/ui/crate-in-paths.stderr +++ b/src/test/ui/crate-in-paths.stderr @@ -1,5 +1,5 @@ error[E0425]: cannot find value `Foo` in this scope - --> $DIR/crate-in-paths.rs:19:5 + --> $DIR/crate-in-paths.rs:20:5 | LL | Foo; | ^^^ not found in this scope |
