]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/unnamed-field-attributes-vis.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / attributes / unnamed-field-attributes-vis.rs
1 // Unnamed fields don't lose their visibility due to non-builtin attributes on them.
2
3 // check-pass
4
5 mod m {
6     pub struct S(#[rustfmt::skip] pub u8);
7 }
8
9 fn main() {
10     m::S(0);
11 }