File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2703,7 +2703,8 @@ use qux as frob;
2703
2703
//- /lib.rs crate:lib new_source_root:library
2704
2704
pub struct S;
2705
2705
//- /main.rs crate:main deps:lib new_source_root:local
2706
- use lib::S$0;
2706
+ use lib::S;
2707
+ fn main() { let _: S$0; }
2707
2708
"# ,
2708
2709
"error: Cannot rename a non-local definition as the config for it is disabled" ,
2709
2710
false ,
@@ -2715,9 +2716,13 @@ use lib::S$0;
2715
2716
//- /lib.rs crate:lib new_source_root:library
2716
2717
pub struct S;
2717
2718
//- /main.rs crate:main deps:lib new_source_root:local
2718
- use lib::S$0;
2719
+ use lib::S;
2720
+ fn main() { let _: S$0; }
2721
+ "# ,
2722
+ r#"
2723
+ use lib::Baz;
2724
+ fn main() { let _: Baz; }
2719
2725
"# ,
2720
- "use lib::Baz;\n " ,
2721
2726
) ;
2722
2727
}
2723
2728
You can’t perform that action at this time.
0 commit comments