Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`". ``` error[E0433]: cannot find `nonexistent` in `existent` --> $DIR/custom_attr_multisegment_error.rs:5:13 | LL | #[existent::nonexistent] | ^^^^^^^^^^^ could not find `nonexistent` in `existent` ```
20 lines
501 B
Rust
20 lines
501 B
Rust
//@ aux-crate:priv,noprelude:somedep=somedep.rs
|
|
//@ compile-flags: -Zunstable-options
|
|
//@ edition:2018
|
|
|
|
// Test for multiple options to --extern. Can't test for errors from both
|
|
// options at the same time, so this only checks that noprelude is honored.
|
|
|
|
#![warn(exported_private_dependencies)]
|
|
|
|
// Module to avoid adding to prelude.
|
|
pub mod m {
|
|
extern crate somedep;
|
|
pub struct PublicType {
|
|
pub field: somedep::S,
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
somedep::somefun(); //~ ERROR cannot find
|
|
}
|