summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-945.rs
blob: d46c69a4f093440aa2c7b7de852ed05ce86f0da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
impl Bar {
    default const unsafe fn foo() {
        "hi"
    }
}

impl Baz {
    default unsafe extern "C" fn foo() {
        "hi"
    }
}

impl Foo for Bar {
    default fn foo() {
        "hi"
    }
}