mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
19 lines
400 B
Plaintext
19 lines
400 B
Plaintext
error: attribute should be applied to a trait
|
|
--> $DIR/attr-misuse.rs:9:1
|
|
|
|
|
LL | #[const_trait]
|
|
| ^^^^^^^^^^^^^^
|
|
LL | fn main() {}
|
|
| ------------ not a trait
|
|
|
|
error: attribute should be applied to a trait
|
|
--> $DIR/attr-misuse.rs:5:5
|
|
|
|
|
LL | #[const_trait]
|
|
| ^^^^^^^^^^^^^^
|
|
LL | fn foo(self);
|
|
| ------------- not a trait
|
|
|
|
error: aborting due to 2 previous errors
|
|
|