diff options
Diffstat (limited to 'tests/ui/modules/super-at-crate-root.rs')
| -rw-r--r-- | tests/ui/modules/super-at-crate-root.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/modules/super-at-crate-root.rs b/tests/ui/modules/super-at-crate-root.rs new file mode 100644 index 00000000000..d605dc0cccb --- /dev/null +++ b/tests/ui/modules/super-at-crate-root.rs @@ -0,0 +1,6 @@ +//! Check that `super` keyword used at the crate root (top-level) results in a compilation error +//! as there is no parent module to resolve. + +use super::f; //~ ERROR there are too many leading `super` keywords + +fn main() {} |
