]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/impl-items-vis-unresolved.rs
Rollup merge of #97812 - TaKO8Ki:suggest-to-swap-struct-and-trait, r=estebank
[rust.git] / src / test / ui / resolve / impl-items-vis-unresolved.rs
1 // Visibilities on impl items expanded from macros are resolved (issue #64705).
2
3 macro_rules! perftools_inline {
4     ($($item:tt)*) => (
5         $($item)*
6     );
7 }
8
9 mod state {
10     pub struct RawFloatState;
11     impl RawFloatState {
12         perftools_inline! {
13             pub(super) fn new() {} // OK
14         }
15     }
16 }
17
18 pub struct RawFloatState;
19 impl RawFloatState {
20     perftools_inline! {
21         pub(super) fn new() {}
22         //~^ ERROR failed to resolve: there are too many leading `super` keywords
23     }
24 }
25
26 fn main() {}