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` ```
26 lines
493 B
Rust
26 lines
493 B
Rust
//@ edition:2015
|
|
// Non-builtin attributes do not mess with field visibility resolution (issue #67006).
|
|
|
|
mod internal {
|
|
struct S {
|
|
#[rustfmt::skip]
|
|
pub(in crate::internal) field: u8 // OK
|
|
}
|
|
|
|
struct Z(
|
|
#[rustfmt::skip]
|
|
pub(in crate::internal) u8 // OK
|
|
);
|
|
}
|
|
|
|
struct S {
|
|
#[rustfmt::skip]
|
|
pub(in nonexistent) field: u8 //~ ERROR cannot find
|
|
}
|
|
|
|
struct Z(
|
|
#[rustfmt::skip]
|
|
pub(in nonexistent) u8 //~ ERROR cannot find
|
|
);
|
|
|
|
fn main() {}
|