aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3592.rs
blob: 34018d142187f7d04d2597614b7083c7d25c8ef3 (plain)
1
2
3
4
5
6
7
pub trait X {
    fn x() {
        fn f(&mut self) {}
        // { dg-error ".self. parameter is only allowed in associated functions" "" { target *-*-* } .-1 }
        f();
    }
}