rust/tests/ui/parser/default-unmatched.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
160 B
Rust
Raw Normal View History

mod foo {
default!(); // OK.
default do
2020-02-23 11:54:00 +00:00
//~^ ERROR `default` is not followed by an item
//~| ERROR expected item, found reserved keyword `do`
}