We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513c6d3 commit d40c0feCopy full SHA for d40c0fe
crates/ide-assists/src/handlers/extract_module.rs
@@ -1708,6 +1708,27 @@ fn main() {
1708
}
1709
"#,
1710
r#"
1711
+mod modname {
1712
+ use Direction::{Horizontal, Vertical};
1713
+
1714
+ pub(crate) struct Point;
1715
1716
+ impl Point {
1717
+ pub const fn direction(self, other: Self) -> Option<Direction> {
1718
+ Some(Vertical)
1719
+ }
1720
1721
1722
+ pub enum Direction {
1723
+ Horizontal,
1724
+ Vertical,
1725
1726
+}
1727
+use modname::Direction::{Horizontal, Vertical};
1728
1729
+fn main() {
1730
+ let x = Vertical;
1731
1732
1733
);
1734
0 commit comments