mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
425 B
Plaintext
17 lines
425 B
Plaintext
error: `default` is not followed by an item
|
|
--> $DIR/default-unmatched.rs:3:5
|
|
|
|
|
LL | default do
|
|
| ^^^^^^^ the `default` qualifier
|
|
|
|
|
= note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
|
|
|
|
error: expected item, found reserved keyword `do`
|
|
--> $DIR/default-unmatched.rs:3:13
|
|
|
|
|
LL | default do
|
|
| ^^ expected item
|
|
|
|
error: aborting due to 2 previous errors
|
|
|