summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-68788-in-trait-item-propagation.rs
blob: 7c3dd1d5a98c754cc43cae8723f7518bd06c581c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Make sure we don't propagate restrictions on trait impl items to items inside them.

// check-pass
// edition:2018

fn main() {}

trait X {
    fn foo();
}

impl X for () {
    fn foo() {
        struct S;
        impl S {
            pub const X: u8 = 0;
            pub const fn bar() {}
            async fn qux() {}
        }
    }
}