File tree 3 files changed +3
-3
lines changed
compiler/rustc_resolve/src
src/test/ui/privacy/restricted
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> {
632
632
VisResolutionError :: Relative2018 ( span, path) => {
633
633
let mut err = self . session . struct_span_err (
634
634
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 " ,
636
636
) ;
637
637
err. span_suggestion (
638
638
path. span ,
Original file line number Diff line number Diff line change 7
7
pub ( in :: core) struct S4 ;
8
8
//~^ ERROR visibilities can only be restricted to ancestor modules
9
9
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
11
11
}
12
12
13
13
fn 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
4
4
LL | pub(in ::core) struct S4;
5
5
| ^^^^^^
6
6
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
8
8
--> $DIR/relative-2018.rs:9:12
9
9
|
10
10
LL | pub(in a::b) struct S5;
You can’t perform that action at this time.
0 commit comments