File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/rustc_resolve/src
src/test/ui/privacy/restricted Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ impl<'a> Resolver<'a> {
632632 VisResolutionError :: Relative2018 ( span, path) => {
633633 let mut err = self . session . struct_span_err (
634634 span,
635- "relative paths are not supported in visibilities on 2018 edition" ,
635+ "relative paths are not supported in visibilities in 2018 edition or later " ,
636636 ) ;
637637 err. span_suggestion (
638638 path. span ,
Original file line number Diff line number Diff line change 77 pub ( in :: core) struct S4 ;
88 //~^ ERROR visibilities can only be restricted to ancestor modules
99 pub ( in a:: b) struct S5 ;
10- //~^ ERROR relative paths are not supported in visibilities on 2018 edition
10+ //~^ ERROR relative paths are not supported in visibilities in 2018 edition or later
1111}
1212
1313fn main ( ) { }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error[E0742]: visibilities can only be restricted to ancestor modules
44LL | pub(in ::core) struct S4;
55 | ^^^^^^
66
7- error: relative paths are not supported in visibilities on 2018 edition
7+ error: relative paths are not supported in visibilities in 2018 edition or later
88 --> $DIR/relative-2018.rs:9:12
99 |
1010LL | pub(in a::b) struct S5;
You can’t perform that action at this time.
0 commit comments