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

19 lines
400 B
Plaintext
Raw Normal View History

error: attribute should be applied to a trait
--> $DIR/attr-misuse.rs:9:1
2021-07-10 15:58:16 +08:00
|
LL | #[const_trait]
| ^^^^^^^^^^^^^^
2023-06-16 23:45:01 +00:00
LL | fn main() {}
| ------------ not a trait
2021-07-10 15:58:16 +08:00
error: attribute should be applied to a trait
2021-07-16 11:54:00 +08:00
--> $DIR/attr-misuse.rs:5:5
2021-07-10 15:58:16 +08:00
|
LL | #[const_trait]
| ^^^^^^^^^^^^^^
2023-06-16 23:45:01 +00:00
LL | fn foo(self);
| ------------- not a trait
2021-07-10 15:58:16 +08:00
error: aborting due to 2 previous errors
2021-07-10 15:58:16 +08:00