Skip to content

Commit bd4d695

Browse files
committed
Add test
1 parent f4aec22 commit bd4d695

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/ui/resolve/issue-117936.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// edition: 2021
2+
// compile-flags: --crate-type=lib
3+
#![crate_type = "lib"]
4+
5+
use super::A; //~ ERROR failed to resolve
6+
7+
mod b {
8+
pub trait A {}
9+
pub trait B {}
10+
}
11+
12+
/// [`A`]
13+
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:5: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)