This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed
tests/run-make/use-suggestions-rust-2018 Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,6 @@ run-make/translation/Makefile
193193run-make/type-mismatch-same-crate-name/Makefile
194194run-make/unknown-mod-stdin/Makefile
195195run-make/unstable-flag-required/Makefile
196- run-make/use-suggestions-rust-2018/Makefile
197196run-make/used-cdylib-macos/Makefile
198197run-make/volatile-intrinsics/Makefile
199198run-make/wasm-exceptions-nostd/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // The compilation error caused by calling on an unimported crate
2+ // should have a suggestion to write, say, crate::bar::Foo instead
3+ // of just bar::Foo. However, this suggestion used to only appear for
4+ // extern crate statements, not crate struct. After this was fixed in #51456,
5+ // this test checks that the correct suggestion is printed no matter what.
6+ // See https://github.com/rust-lang/rust/issues/51212
7+
8+ use run_make_support:: { rust_lib_name, rustc} ;
9+
10+ fn main ( ) {
11+ rustc ( ) . input ( "ep-nested-lib.rs" ) . run ( ) ;
12+ rustc ( )
13+ . input ( "use-suggestions.rs" )
14+ . edition ( "2018" )
15+ . extern_ ( "ep_nested_lib" , rust_lib_name ( "ep_nested_lib" ) )
16+ . run_fail ( )
17+ . assert_stderr_contains ( "use ep_nested_lib::foo::bar::Baz" ) ;
18+ }
You can’t perform that action at this time.
0 commit comments