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