You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior is...
Code has multiple errors:
<source>:8:9: error: too many leading 'super' keywords [E0433]
8 | use super::f;
| ^~~~~
<source>:8:9: error: too many leading 'super' keywords [E0433]
<source>:8:9: error: too many leading 'super' keywords [E0433]
<source>:10:9: error: unresolved import 'g' [E0433]
10 | use g as g2;
| ^
<source>:9:15: error: unresolved import 'self::g' [E0433]
9 | use self::g as g1;
| ^
<source>:8:16: error: unresolved import 'super::f' [E0433]
8 | use super::f;
| ^
Compiler returned: 1
Expected behavior
I expected to see...
No errors, maybe unused code warnings
Summary
Imports don't appear to work in modules with name resolution 2.0
Reproducer
I tried this code:
Does the code make use of any (1.49) nightly feature ?
Godbolt link
https://godbolt.org/z/oT5eYY1vs
Actual behavior
The current behavior is...
Code has multiple errors:
Expected behavior
I expected to see...
No errors, maybe unused code warnings
GCC Version
gccrs (Compiler-Explorer-Build-gcc-b5c354d038f800695a8d730c56c4a4f744134adb-binutils-2.42) 14.0.1 20240309 (experimental)
The text was updated successfully, but these errors were encountered: