File tree 3 files changed +3
-3
lines changed
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> {
1752
1752
-> PResult < ' a , ast:: Path >
1753
1753
{
1754
1754
maybe_whole ! ( self , NtPath , |path| {
1755
- if style == PathStyle :: Mod &&
1755
+ if mode == PathStyle :: Mod &&
1756
1756
path. segments. iter( ) . any( |segment| segment. parameters. is_some( ) ) {
1757
1757
self . diagnostic( ) . span_err( path. span, "unexpected generic arguments in path" ) ;
1758
1758
}
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ macro_rules! import {
20
20
( $p: path) => ( use $p; ) ;
21
21
}
22
22
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
24
24
25
25
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ macro_rules! m {
13
13
}
14
14
15
15
struct 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
17
17
//~^ ERROR expected module, found struct `S`
18
18
19
19
fn main ( ) { }
You can’t perform that action at this time.
0 commit comments