| 1 |
// { dg-options "-frust-name-resolution-2.0" } |
| 2 |
|
| 3 |
pub mod foo { |
| 4 |
pub mod bar { |
| 5 |
fn f() { |
| 6 |
super::super::super::foo!(); // { dg-error "too many leading .super. keywords" } |
| 7 |
// { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 } |
| 8 |
|
| 9 |
super::crate::foo!(); // { dg-error "leading path segment .crate. can only be used" } |
| 10 |
// { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 } |
| 11 |
|
| 12 |
|
| 13 |
crate::foo::bar::super::foo!(); // { dg-error "leading path segment .super. can only be used" } |
| 14 |
// { dg-error "could not resolve macro invocation" "" { target *-*-* } .-1 } |
| 15 |
} |
| 16 |
} |
| 17 |
} |