We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e46cfb commit 4d948deCopy full SHA for 4d948de
tests/ui/modules/super-at-crate-root.rs
@@ -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
+
6
use super::f; //~ ERROR there are too many leading `super` keywords
7
-fn main() {
-}
8
+fn main() {}
0 commit comments