Test crate loading error stderr
And remove E0464 from test-exemption list, since it now has a full test.
This commit is contained in:
parent
6792c6a851
commit
642a43a9cd
3 changed files with 20 additions and 4 deletions
|
|
@ -1,10 +1,13 @@
|
|||
// dont-check-compiler-stderr
|
||||
// aux-build:crateresolve1-1.rs
|
||||
// aux-build:crateresolve1-2.rs
|
||||
// aux-build:crateresolve1-3.rs
|
||||
// error-pattern:multiple matching crates for `crateresolve1`
|
||||
|
||||
// normalize-stderr-test: "\.nll/" -> "/"
|
||||
// normalize-stderr-test: "\\\?\\" -> ""
|
||||
// normalize-stderr-test: "libcrateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$1.somelib"
|
||||
|
||||
extern crate crateresolve1;
|
||||
//~^ ERROR multiple matching crates for `crateresolve1`
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
13
src/test/ui/crate-loading/crateresolve1.stderr
Normal file
13
src/test/ui/crate-loading/crateresolve1.stderr
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
error[E0464]: multiple matching crates for `crateresolve1`
|
||||
--> $DIR/crateresolve1.rs:9:1
|
||||
|
|
||||
LL | extern crate crateresolve1;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: candidates:
|
||||
crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-1.somelib
|
||||
crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-2.somelib
|
||||
crate `crateresolve1`: $TEST_BUILD_DIR/crate-loading/crateresolve1/auxiliary/libcrateresolve1-3.somelib
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue