aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/parse_specialization.rs
blob: de50b5bedff4984e89f729d88d5617b4ed170e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-additional-options "-fsyntax-only" }

trait Foo {
    fn bar();
    unsafe fn bar_u();
}

struct S;

impl Foo for S {
    default fn bar() {}
    default unsafe fn bar_u() {}
}