diff options
Diffstat (limited to 'tests/ui/imports/bad-import-with-rename.rs')
-rw-r--r-- | tests/ui/imports/bad-import-with-rename.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/imports/bad-import-with-rename.rs b/tests/ui/imports/bad-import-with-rename.rs new file mode 100644 index 000000000..ffe56916f --- /dev/null +++ b/tests/ui/imports/bad-import-with-rename.rs @@ -0,0 +1,16 @@ +mod A { + pub type B = (); + pub type B2 = (); +} + +mod C { + use crate::D::B as _; + //~^ ERROR unresolved import `crate::D::B` + + use crate::D::B2; + //~^ ERROR unresolved import `crate::D::B2` +} + +mod D {} + +fn main() {} |