test: add test for extract_module

This commit is contained in:
roife 2024-03-15 21:05:04 +08:00
parent 513c6d35ed
commit d40c0fe48b

View file

@ -1708,6 +1708,27 @@ fn main() {
}
"#,
r#"
mod modname {
use Direction::{Horizontal, Vertical};
pub(crate) struct Point;
impl Point {
pub const fn direction(self, other: Self) -> Option<Direction> {
Some(Vertical)
}
}
pub enum Direction {
Horizontal,
Vertical,
}
}
use modname::Direction::{Horizontal, Vertical};
fn main() {
let x = Vertical;
}
"#,
);
}