rust-analyzer/crates/hir_def/src/nameres/tests/primitives.rs
2020-08-13 16:29:33 +02:00

23 lines
287 B
Rust

use super::*;
#[test]
fn primitive_reexport() {
check(
r#"
//- /lib.rs
mod foo;
use foo::int;
//- /foo.rs
pub use i32 as int;
"#,
expect![[r#"
crate
foo: t
int: t
crate::foo
int: t
"#]],
);
}