mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-25 11:25:06 +00:00
23 lines
287 B
Rust
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
|
|
"#]],
|
|
);
|
|
}
|