Skip to content

Commit 4d948de

Browse files
committed
super-at-top-level
1 parent 5e46cfb commit 4d948de

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
//! Check that `super` keyword used at the crate root (top-level) results in a compilation error
2+
//! as there is no parent module to resolve.
3+
//!
4+
//! This ensures correct behavior and error reporting for module path resolution.
5+
16
use super::f; //~ ERROR there are too many leading `super` keywords
27

3-
fn main() {
4-
}
8+
fn main() {}

0 commit comments

Comments
 (0)