File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1752,7 +1752,7 @@ impl<'a> Parser<'a> {
17521752 -> PResult < ' a , ast:: Path >
17531753 {
17541754 maybe_whole ! ( self , NtPath , |path| {
1755- if style == PathStyle :: Mod &&
1755+ if mode == PathStyle :: Mod &&
17561756 path. segments. iter( ) . any( |segment| segment. parameters. is_some( ) ) {
17571757 self . diagnostic( ) . span_err( path. span, "unexpected generic arguments in path" ) ;
17581758 }
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ macro_rules! import {
2020 ( $p: path) => ( use $p; ) ;
2121}
2222
23- import ! { a:: b:: c:: S <u8 > } //~ERROR type or lifetime parameters in import path
23+ import ! { a:: b:: c:: S <u8 > } //~ERROR unexpected generic arguments in path
2424
2525fn main ( ) { }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ macro_rules! m {
1313}
1414
1515struct S < T > ( T ) ;
16- m ! { S <u8 > } //~ ERROR type or lifetime parameters in visibility path
16+ m ! { S <u8 > } //~ ERROR unexpected generic arguments in path
1717//~^ ERROR expected module, found struct `S`
1818
1919fn main ( ) { }
You can’t perform that action at this time.
0 commit comments