From 232bd4c7ab919f9d423e65cd5d00c9c6d919f5af Mon Sep 17 00:00:00 2001 From: Douglas Campos Date: Mon, 16 Jul 2018 15:09:01 +0000 Subject: [PATCH] make the test only deal with edition flags --- src/test/ui/crate-in-paths.rs | 5 +++-- 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