Skip to content

Commit 84503ad

Browse files
committed
Add test
1 parent f4aec22 commit 84503ad

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

tests/ui/resolve/issue-117936.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![crate_type = "lib"]
2+
3+
use super::A; //~ ERROR failed to resolve
4+
5+
mod b {
6+
pub trait A {}
7+
pub trait B {}
8+
}
9+
10+
/// [`A`]
11+
pub use b::*;

tests/ui/resolve/issue-117936.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0433]: failed to resolve: there are too many leading `super` keywords
2+
--> $DIR/issue-117936.rs:3:5
3+
|
4+
LL | use super::A;
5+
| ^^^^^ there are too many leading `super` keywords
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0433`.

0 commit comments

Comments
 (0)