summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/default-unmatched.rs
blob: 49346e5c6318d497e0f521197fa833a1f48c5c89 (plain)
1
2
3
4
5
6
mod foo {
    default!(); // OK.
    default do
    //~^ ERROR `default` is not followed by an item
    //~| ERROR expected item, found reserved keyword `do`
}