]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/field-attributes-vis-unresolved.rs
Rollup merge of #106489 - jschwe:fix_linker_detection, r=petrochenkov
[rust.git] / tests / ui / attributes / field-attributes-vis-unresolved.rs
1 // Non-builtin attributes do not mess with field visibility resolution (issue #67006).
2
3 mod internal {
4     struct S {
5         #[rustfmt::skip]
6         pub(in crate::internal) field: u8 // OK
7     }
8
9     struct Z(
10         #[rustfmt::skip]
11         pub(in crate::internal) u8 // OK
12     );
13 }
14
15 struct S {
16     #[rustfmt::skip]
17     pub(in nonexistent) field: u8 //~ ERROR failed to resolve
18 }
19
20 struct Z(
21     #[rustfmt::skip]
22     pub(in nonexistent) u8 //~ ERROR failed to resolve
23 );
24
25 fn main() {}