mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
15 lines
272 B
Plaintext
15 lines
272 B
Plaintext
error: cannot find attribute `default` in this scope
|
|
--> $DIR/suggest-default-attribute.rs:2:7
|
|
|
|
|
LL | #[default]
|
|
| ^^^^^^^
|
|
|
|
|
help: consider adding a derive
|
|
|
|
|
LL + #[derive(Default)]
|
|
LL ~ pub enum Test {
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|