Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mu001999 committed Nov 15, 2023
1 parent f4aec22 commit 84503ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ui/resolve/issue-117936.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#![crate_type = "lib"]

use super::A; //~ ERROR failed to resolve

mod b {
pub trait A {}
pub trait B {}
}

/// [`A`]
pub use b::*;
9 changes: 9 additions & 0 deletions tests/ui/resolve/issue-117936.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0433]: failed to resolve: there are too many leading `super` keywords
--> $DIR/issue-117936.rs:3:5
|
LL | use super::A;
| ^^^^^ there are too many leading `super` keywords

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.

0 comments on commit 84503ad

Please sign in to comment.