rust/tests/ui/rfcs/rfc-2632-const-trait-impl/attr-misuse.stderr

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 02:58:16 -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
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
|
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
error: aborting due to 2 previous errors
2021-07-10 02:58:16 -05:00